This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author behzad.nouri
Recipients behzad.nouri
Date 2015-05-10.20:55:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
- python 2 only, not reproducible on python 3

Attached file makes an extension module which just returns PyIter_Check value on passed object.

Calling the function with an object of type "instance" returns true, even though the object is not iterator:

    >>> import spam
    >>> class Foo:
    ...     pass
    >>> foo = Foo()
    >>> type(foo)
    <type 'instance'>
    >>> spam.isiter(foo)  # <<<< ?!
    >>> next(foo)
    TypeError: instance has no next() method
Date User Action Args
2015-05-10 20:55:34behzad.nourisetrecipients: + behzad.nouri
2015-05-10 20:55:34behzad.nourisetmessageid: <>
2015-05-10 20:55:34behzad.nourilinkissue24161 messages
2015-05-10 20:55:34behzad.nouricreate