]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Jim Fulton writes:
authorGuido van Rossum <guido@python.org>
Wed, 9 Jun 1999 15:23:31 +0000 (15:23 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 9 Jun 1999 15:23:31 +0000 (15:23 +0000)
commitc03158bfc7056ad4ce48484183f0db7259dc9c8b
tree803cdd9c667676127cacd504bc9f61b222be06c3
parentfa71701d46892fe80b1e95279e435533579b3ca7
Jim Fulton writes:

I've updated cPickle.c to use class exceptions:

Changed pickle error types to classes:

  PickleError
     PicklingError
        UnpickleableError
     UnpicklingError

And change the handling of unpickleable objects so that an UnpickleableError
is raised with the unpickleable object as the argument.  UnpickleableError
has a reasonable string representation and provides access to the problem
object, which is useful during debugging.

[I'm still waiting for patches to do the same to pickle.py.]
Modules/cPickle.c