]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport gvanrossum's checkin of version 1.10:
authorMichael W. Hudson <mwh@python.net>
Fri, 28 Dec 2001 15:48:09 +0000 (15:48 +0000)
committerMichael W. Hudson <mwh@python.net>
Fri, 28 Dec 2001 15:48:09 +0000 (15:48 +0000)
commitd444067ad38a59193a1b88522bd54709292bc011
treeace66ea98604faa4128176e54d3d7debf691bc4d
parentedd5e17962bfda1f9bb797e37c84859c631231c9
Backport gvanrossum's checkin of version 1.10:

_reduce(): Avoid infinite recursion in the pickler when self.__class__
doesn't have the _HEAPTYPE flag set, e.g. for time.struct_time and
posix.stat_result.

This fixes the immediate symptoms of SF bug #496873 (cPickle /
time.struct_time loop), replacing the infinite loop with an exception.
Lib/copy_reg.py