[issue17296] Cannot unpickle classes derived from 'Exception'

2013-02-26 Thread Andreas Hausmann
Andreas Hausmann added the comment: That is correct. Under 2.4 and 3.3 it should show neither the line EXCEPTION ## EXCEPTION nor the following line TypeError: ('__init__() takes at least 2 arguments. That means, that in version 2.4 and 3.3 that unpickling problem doesn't exist

[issue17296] Cannot unpickle classes derived from 'Exception'

2013-02-26 Thread Andreas Hausmann
Andreas Hausmann added the comment: A backport to 2.7 would be in the interest of the Zope community (I dare say ;)), at least in ours. In our project, after having migrated to Zope 2.13/Python2.7 we found this bug and now we are quite worried what else might happen with our huge pickled

[issue17296] Cannot unpickle classes derived from 'Exception'

2013-02-25 Thread Andreas Hausmann
New submission from Andreas Hausmann: When pickling/unpickling a class that derives from the builtin class Exception, unpickling results in a TypeError: ('__init__() takes at least 2 arguments (1 given)', class '__main__.TestException', ()) A standard exception like ValueError can be pickled

[issue17296] Cannot unpickle classes derived from 'Exception'

2013-02-25 Thread Andreas Hausmann
Andreas Hausmann added the comment: I have not tried in 3.3. I have no running installation of 3.3. I need a solution for 2.7 for a Zope project that was just ported to 2.7. My test for Python3 was halfheartedly on my standard Python3 installation (3.2) after reading Issue1692335