private attributes in __slots__ and pickle

i_hate at i_hate at
Tue Nov 30 15:09:36 CET 2004

i_hate at wrote:

> Hello,
> I've just discovered the hard way that classes declaring private variables
> (beginning with two underscore) can not be pickled ; double underscored

I meant "declaring private attributes in __slots__" ; sorry.

> attributes are just not returned by __reduce__.
> That's very annoying.
> Objects should be serializable transparently so why such obstacles ?

More information about the Python-list mailing list