![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archivePickling and unpickling inherited attributes
From: Alex <OurLab@gmail.com>
Date: Mon Oct 31 2005 - 00:12:31 CET
I have a serious problem and I hope there is some solution. It is
>>> class Parent(object):
>>> class Child(Parent):
>>> obj=Child(1)
Traceback (most recent call last):
So far so good.. Object obj inherited attributes (A and B) from the
>>> import cPickle
Traceback (most recent call last):
Its own attribute (C) value is restored but the value of an inherited
What can be done?! Or maybe nothing can be done?
I would greatly appreciate an advice. A lot of code is written, but now
|