I\'m aware that saving a class into a binary file in c++ is possible using:
file.write(Class_variable, size_of_class, amount_of_saves, file_where_to_save) >
You can get at the bytes of Python objects to save & restore them like that, but it's not easy to do directly. However, the standard pickle module simplifies the process enormously.