[issue4176] segfault with pickle if 4th or 5th item of tuple returned by __reduce__ is not an iterator
Amaury Forgeot d'Arc
report at bugs.python.org
Fri Oct 31 18:55:48 CET 2008
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
I corrected the test in the py3k branch.
I don't know why I did not make it similar to the one in trunk; I guess
I ran the test suite on the wrong directory... Sorry for the
Regarding the consistency between python and C, I don't think it is
necessary to be so strict. If the python version can allow a weaker
version of the "iterator" concept, let be it.
OTOH, in 3.0 the C version was rewritten to be quasi identical to the
Python one, so I do understand your desire to have similar code.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list