[issue7321] PyIter_Check(obj) fails when obj is of type PySetType

Antoine Pitrou report at bugs.python.org
Sat Nov 14 14:42:34 CET 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

Set objects are iterable, they are not iterators themselves.
In other words, PyIter_Check() should return true when called with the
result of PyObject_GetIter() (but normally you don't need to check anyway).

----------
nosy: +pitrou
resolution:  -> invalid
status: open -> closed

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


More information about the Python-bugs-list mailing list