Pickling and unpickling inherited attributes

Alex OurLab at gmail.com
Sun Oct 30 18:23:49 EST 2005


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?




More information about the Python-list mailing list