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.

classification
标题: Improve exception pickling support
类型: Stage:
Components: Interpreter Core Versions: Python 2.6
process
状态: closed Resolution:
Dependencies: 后续: Fix exception pickling: Move initial args assignment to BaseException.__new__
View: 1692335
分配给: 抄送列表: ehuss, georg.brandl, nnorwitz
优先级: normal 关键字: patch

Created on 2007-06-27 18:44 by ehuss, last changed 2022-04-11 14:56 by admin. This issue is now closed.

文件
文件名 上传时间 Description 编辑
exception_pickle.patch ehuss, 2007-06-27 18:44 patch against trunk revision 56094
Messages (3)
msg52804 - (view) Author: Eric Huss (ehuss) 日期: 2007-06-27 18:44
Due to various issues with how pickle works and new-style classes, pickling exception objects has been somewhat unreliable since Python 2.5.  See comments in patch #1692335 for more detail.  Attached is a patch that seems to improve pickling exceptions to support various different types of subclasses.

It has some limitations (exceptions that use __slots__, doesn't fully support SyntaxError, UnicodeError, SystemExit, or WindowsError).  However, it is an improvement for my situation.

msg52805 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) 日期: 2007-08-11 18:31
Eric, could you comment on the current version of the other patch?  Does that work for you?  Is that sufficient?  If not, how are they different?  Should they both be applied, in part or in whole?
msg55164 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) 日期: 2007-08-23 17:28
Closing in favor of #1692335.
历史
日期 用户 动作 参数
2022-04-11 14:56:25admin修改github: 45134
2007-08-23 17:28:00georg.brandl修改状态: open -> closed
后续: Fix exception pickling: Move initial args assignment to BaseException.__new__
消息: + msg55164
抄送: + georg.brandl
2007-06-27 18:44:32ehuss创建