[issue1457119] Unifying pickle and cPickle exception class hierarchies

Daniel Diniz report at bugs.python.org
Sat Mar 21 02:35:45 CET 2009


Daniel Diniz <ajaksu at gmail.com> added the comment:

Almost fooled me, still as described on trunk:

>>>help(cPickle.UnpickleableError)
Help on class UnpickleableError in module cPickle:
class UnpickleableError(PicklingError)
[...]
>>> help(pickle.PicklingError)
Help on class PicklingError in module pickle:
class PicklingError(PickleError)

>>> try: cPickle.dumps(tb)
... except pickle.PicklingError: print 1
...
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
cPickle.UnpickleableError: Cannot pickle <type 'traceback'> objects

----------
components: +Library (Lib)
nosy: +ajaksu2
stage:  -> test needed
type:  -> feature request
versions: +Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1457119>
_______________________________________


More information about the Python-bugs-list mailing list