Make asyncio.iscoroutinefunction() recognise Cython compiled coroutines. (GH-3427)
Python's asyncio.coroutines uses an object to tag objects as coroutine functions. We now read this object and use it to tag Cython compiled coroutines as well. It also includes tests to make sure `asyncio.iscoroutinefunction()` works as expected. This doesn't fix `inspect.iscouroutinefunction()` (which uses a flag that can trigger undesirable behaviour for cython functions). Closes https://github.com/cython/cython/issues/2273
Showing
Please register or sign in to comment