[issue10565] isinstance(x, collections.Iterator) can return True, when x isn't iterable
Raymond Hettinger
report at bugs.python.org
Sun Nov 28 19:55:29 CET 2010
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
> A possible solution could be in
> collections.Iterator.__subclasshook__
> checking for both required methods.
That makes sense. PEP 234 requires
iterators to support both methods.
----------
assignee: -> rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10565>
_______________________________________
More information about the Python-bugs-list
mailing list