➜

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.

作者 zseil
收信人
日期 2007-08-12.12:34:47
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
内容
It's not just the message attribute; the problem is
that the current code expects that the exception
won't be modified between creation and unpickling.

For example:

>>> import pickle
>>> e = EnvironmentError()
>>> e.filename = "x"
>>> new = pickle.dumps(pickle.loads(e))
>>> print new.filename
None
>>> e = SyntaxError()
>>> e.lineno = 10
>>> new = pickle.loads(pickle.dumps(e))
>>> print new.lineno
None
历史
日期 用户 动作 参数
2007-08-23 15:57:51admin链接issue1692335 messages
2007-08-23 15:57:51admin创建