homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:51adminlinkissue1692335 messages
2007年08月23日 15:57:51admincreate

AltStyle によって変換されたページ (->オリジナル) /