private attributes in __slots__ and pickle
i_hate_at_spams.biz
Date: 11/30/04
- Next message: i_hate_at_spams.biz: "Re: private attributes in __slots__ and pickle"
- Previous message: Jerry Sievers: "Re: comment out more than 1 line at once?"
- Next in thread: i_hate_at_spams.biz: "Re: private attributes in __slots__ and pickle"
- Reply: i_hate_at_spams.biz: "Re: private attributes in __slots__ and pickle"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Nov 2004 15:07:43 +0100
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 ?
- Next message: i_hate_at_spams.biz: "Re: private attributes in __slots__ and pickle"
- Previous message: Jerry Sievers: "Re: comment out more than 1 line at once?"
- Next in thread: i_hate_at_spams.biz: "Re: private attributes in __slots__ and pickle"
- Reply: i_hate_at_spams.biz: "Re: private attributes in __slots__ and pickle"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]