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 

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," and "isinstance(obj,".


Python tracker <>
Python-bugs-list mailing list

Reply via email to