]> granicus.if.org Git - python/commit
Issue #4176: Pickle would crash the interpreter when a __reduce__ function
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Thu, 30 Oct 2008 21:18:34 +0000 (21:18 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Thu, 30 Oct 2008 21:18:34 +0000 (21:18 +0000)
commit69a9c5b539dd848369efcd67574e447065f638e9
tree8c1ad2e3831296822c6367a50e57e68a188edbc5
parent1fac5a450562c50a3b7121598da7f010a306e50f
Issue #4176: Pickle would crash the interpreter when a __reduce__ function
does not return an iterator for the 4th and 5th items.
(sequence-like and mapping-like state)

A list is not an iterator...

Will backport to 2.6 and 2.5.
Lib/test/pickletester.py
Misc/NEWS
Modules/cPickle.c