[issue24400] Awaitable ABC incompatible with functools.singledispatch
Nick Coghlan
report at bugs.python.org
Sat Jun 20 12:46:01 CEST 2015
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 <report at bugs.python.org>
<http://bugs.python.org/issue24400>
_______________________________________
More information about the Python-bugs-list
mailing list