Message76028
In the attached test_exception_pickle.py file, class C and D cannot be
unpickled (raises TypeError).
class C(Exception):
"""Extension with values, args not set."""
def __init__(self, foo):
self.foo = foo
class D(Exception):
"""Extension with values, init called with no args."""
def __init__(self, foo):
self.foo = foo
Exception.__init__(self)
There are also some other exceptions that fail to be handled properly.
See the exception_pickling_26.diff for some unittests. In particular, I
see SlotedNaiveException failing. |
|
Date |
User |
Action |
Args |
2008-11-18 23:07:22 | ehuss | set | recipients:
+ ehuss, gvanrossum, loewis, nnorwitz, brett.cannon, georg.brandl, facundobatista, jafo, zseil, alexandre.vassalotti, jarpa |
2008-11-18 23:07:22 | ehuss | set | messageid: <1227049642.42.0.973570146613.issue1692335@psf.upfronthosting.co.za> |
2008-11-18 23:07:21 | ehuss | link | issue1692335 messages |
2008-11-18 23:07:21 | ehuss | create | |
|