Nick Coghlan added the comment:

I believe the key issue of concern for Cython is being able to emulate the 
native CPython types in a way that things like asyncio "just work", rather than 
specifically needing to have inspect report them as native generators and 
coroutines.

As such, having inspect.isgenerator() and inspect.iscoroutine() be consistent 
in checking specifically for the *native* types makes sense to me, but it 
should be made clear that they're stricter checks than "isinstance(obj, 
collections.abc.Generator)" and "isinstance(obj, collections.abc.Coroutine)".

----------

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

Reply via email to