[issue38225] iscoroutinefunction broken with cython - allow tagging of functions as async?
Yury Selivanov
report at bugs.python.org
Fri Sep 20 18:35:34 EDT 2019
Yury Selivanov <yselivanov at gmail.com> added the comment:
> If a python piece of code imports cython code with async defs, `asyncio.iscoroutinefunction` cannot determine that the code is async.
Well, this seems to be a regression. IIRC Cython used to emulate a Python code object (__code__) for functions it compiled along with the appropriate CO_COROUTINE flag set. Wasn't that the case?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38225>
_______________________________________
More information about the Python-bugs-list
mailing list