How can I check if an object is an iterator in Python?

Posted by Juanjo Conti on Stack Overflow See other posts from Stack Overflow or by Juanjo Conti
Published on 2010-06-11T14:16:06Z Indexed on 2010/06/11 18:13 UTC
Read the original article Hit count: 188

Filed under:
|

I can try if it has a next() method or something like that. Is there a standard way?

© Stack Overflow or respective owner

Related posts about python

Related posts about iterator