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 gvanrossum, scoder, vstinner, yselivanov
Date 2015-05-30.17:56:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1433008587.05.0.66197477407.issue24004@psf.upfronthosting.co.za>
In-reply-to
Content
Cython functions that return a generator aren't special in any way, so it's actually correct that isgeneratorfunction() always returns False. I mean, I could set the CO_COROUTINE flag on the code object that we fake, but that wouldn't help much as Cython's functions are not Python functions, so isfunction() will also return False for them and no-one would look at the flag in the first place. And finally, a Cython generator is not a Python generator (with byte code position etc.), so isgenerator() also correctly returns False.

At least iscoroutine() and iswaitable() will return True for Cython Coroutines now.
History
Date User Action Args
2015-05-30 17:56:27scodersetrecipients: + scoder, gvanrossum, vstinner, yselivanov
2015-05-30 17:56:27scodersetmessageid: <1433008587.05.0.66197477407.issue24004@psf.upfronthosting.co.za>
2015-05-30 17:56:27scoderlinkissue24004 messages
2015-05-30 17:56:26scodercreate