Message52350
| Author |
zseil |
| Recipients |
| Date |
2007年04月01日.21:50:49 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
I'm attaching a test that Eric Huss sent in private
mail.
The test fails, because old exception pickles don't
have args for the reconstructor, but their __init__()
gets called anyway because they are new style classes
now.
The problem is in cPickle.InstanceNew() and
pickle.Unpickler._instantiate(). Those methods behave
differently depending on the type of the object
instantiated; they avoid the __init__() call when type
is an old style class.
There is nothing that can be done in the exception
classes to fix this issue; the fix would need to be
in the pickle and cPickle module.
File Added: test_exception_pickle.py |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 15:57:51 | admin | link | issue1692335 messages |
| 2007年08月23日 15:57:51 | admin | create |
|