[issue4176] segfault with pickle if 4th or 5th item of tuple returned by __reduce__ is not an iterator

Alexandre Vassalotti report at bugs.python.org
Fri Oct 31 13:14:01 CET 2008


Alexandre Vassalotti <alexandre at peadrop.com> added the comment:

Iterators only need to provide a __next__() method. So, you don't have
to check __iter__.

Other than that, the patch looks good.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4176>
_______________________________________


More information about the Python-bugs-list mailing list