pickle and __slots__
John Nagle
nagle at animats.com
Thu Oct 4 12:14:55 EDT 2007
JL wrote:
> Hello,
>
> I am trying to pickle an object, and I get:
>
> TypeError: a class that defines __slots__ without defining
> __getstate__ cannot be pickled
>
> I didn't find __slots__ in the object or the class. Is there a way to
> find it, or to to know which object or class causes the problem?
>
> Thanks
>
Is this a subclass? Look at the parent classes.
John Nagle
More information about the Python-list
mailing list