Message16290
I have this object that causes a recursive call in the
__getattr__ method.
When I unpicke it using pickle, I get a runtimeerror
recursiondepth exceeded. When I unpickle it using
cPickle, everything appears to work -- no error is raised.
(tested on python 2.2.3 and 2.3b1)
The output of the attached python test file is:
***pickle***
Creating t...
Thing.__init__ name= myname
Pickle t...
Restore t...
FAIL!!! <exceptions.RuntimeError instance at
0x00951C68> maximum recursion depth exceeded
***cPickle***
Creating t...
Thing.__init__ name= myname
Pickle t...
Restore t...
SUCCESS!!! name= myname
|
|
Date |
User |
Action |
Args |
2007-08-23 14:13:46 | admin | link | issue751276 messages |
2007-08-23 14:13:46 | admin | create | |
|