I get an error when I try to save a custom object with
with open(path + '/' + 'my_object.pickle', 'wb') as handle:
pickle.dump(my_class_instance, handle, protocol=pickle.HIGHEST_PROTOCOL)
The error message is:
TypeError: can't pickle SwigPyObject objects
My first question is: What is a SwigPyObject objects?, so I can try to figured out where the errors came from.