I think the C implementation of PyAiter_Check was a translation of the Python 
code `isinstance(..., collections.abc.AsyncIterator)`, but I agree that it 
would be more consistent to just check for __anext__. There were comments at 
the time here: https://github.com/python/cpython/pull/8895#discussion_r532833905
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/VLT475NI2ORNSHFZZVZVD4QYOPG66SQK/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to