]> granicus.if.org Git - python/commit
#4170: Fix segfault when pickling a defauldict object.
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Thu, 30 Oct 2008 20:58:42 +0000 (20:58 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Thu, 30 Oct 2008 20:58:42 +0000 (20:58 +0000)
commitf43ee81ef211d9c79f8bbaa3ab369d387c2dfeb6
treec8b3b606b8b14db6d8e10d9ef76751703b58ae87
parent73b90a8d61898ccde2c083a6e51af6624ec52fc3
#4170: Fix segfault when pickling a defauldict object.

The 2.x dict.iteritems() returns an iterator,
whereas the 3.0 dict.items() returns a "view",
which is iterable, but not an iterator with its __next__ method.

Patch by Hirokazu Yamamoto.
Lib/test/test_defaultdict.py
Misc/NEWS
Modules/_collectionsmodule.c