I\'m trying to pickle an object of a (new-style) class I defined. But I\'m getting the following error:
>>> with open(\'temp/connection.pickle\',\'
Perhaps an attribute of your instance is using __slots__
__slots__
For example, socket has __slots__ so it can't be pickled
socket
You need to identify which attribute is causing the error and write your own __getstate__ and __setstate__ to ignore that attribute
__getstate__
__setstate__