Re: private attributes in __slots__ and pickle

2004-11-30 Thread i_hate
[EMAIL PROTECTED] 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__.

private attributes in __slots__ and pickle

2004-11-30 Thread i_hate
Hello, I've just discovered the hard way that classes declaring private variables (beginning with two underscore) can not be pickled ; double underscored attributes are just not returned by __reduce__. That's very annoying. Objects should be serializable transparently so why such obstacles ? --