Re: Pickling and unpickling inherited attributes
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Pickling and unpickling inherited attributes

From: Alex <OurLab@gmail.com>
Date: Mon Oct 31 2005 - 00:23:49 CET

Sorry, I copied and pasted a wrong piece from shell at one part of the
code:

objct.Z=4 was in fact obj.Z=4 and it did refuse to accept Z (because it
is not in __slots__).

But the question remains: why the value of attribute A is not preserved
during pickling and unpickling and what can be done about it, if
anything?
Received on Mon Nov 21 01:06:25 2005