[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

Martin v. Löwis report at bugs.python.org
Sun Feb 3 20:04:05 CET 2008


Martin v. Löwis added the comment:

I tested exception_pickling_25.diff, and it may break existing code.
In 2.5.1, Exception("Hello,4).__reduce__() gives 
(<type 'exceptions.Exception'>, ('Hello', 4))

With the patch, it gives

TypeError: can't pickle Exception objects

IMO, that is an unacceptable change for a bugfix release.

Aside: please give unique file names to the patches, or remove patches
if you want to replace a previous patch.

----------
nosy: +loewis

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1692335>
_____________________________________


More information about the Python-bugs-list mailing list