Message52348
| Author |
zseil |
| Recipients |
| Date |
2007年04月01日.13:46:15 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
Pickling exceptions fails when an Exception class
requires an argument in the constructor, but doesn't
call its base class' constructor. See this mail
for details:
http://mail.python.org/pipermail/python-dev/2007-April/072416.html
This patch simply moves initial args assignment to
BaseException.__new__. This should fix most of the
problems, because it is very unlikely that an
exception overwrites the __new__ method; exceptions
used to be old style classes, which don't support
the __new__ special method.
The args attribute is still overwritten in all the
__init__ methods, so there shouldn't be any backward
compatibility problems.
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 15:57:51 | admin | link | issue1692335 messages |
| 2007年08月23日 15:57:51 | admin | create |
|