behzad nouri added the comment:

> That works for builtin types but not for user defined classes

> Rather than using PyIter_Check(), extensions should just call next() on 
> object and see whether it succeeds

but then, what would be the use case of PyIter_Check outside of python core?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24161>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to