This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author scoder
Recipients asvetlov, dhiltonp, eamanu, scoder, yselivanov
Date 2019-09-21.13:23:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1569072206.73.0.756737451691.issue38225@roundup.psfhosted.org>
In-reply-to
Content
> along with the appropriate CO_COROUTINE flag set

No, it never did that, for safety reasons. It's difficult to say if enabling these flags is the right thing to do, because it's unclear what assumptions code that tests for them would make. In CPython itself, there do not seem to be any "excessive" assumptions specific to that flag – also because Cython functions are not Python functions, and thus the flag will never be looked at:

https://github.com/python/cpython/blob/5b9ff7a0dcb16d6f5c3cd4f1f52e0ca6a4bde586/Lib/inspect.py#L178-L180

Thus, setting the CO_COROUTINE and CO_ASYNC_GENERATOR code flags has no effect for Cython functions.
History
Date User Action Args
2019-09-21 13:23:26scodersetrecipients: + scoder, asvetlov, yselivanov, eamanu, dhiltonp
2019-09-21 13:23:26scodersetmessageid: <1569072206.73.0.756737451691.issue38225@roundup.psfhosted.org>
2019-09-21 13:23:26scoderlinkissue38225 messages
2019-09-21 13:23:26scodercreate