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 ncoghlan
Recipients Ben.Darnell, Yury.Selivanov, asvetlov, gvanrossum, martin.panter, ncoghlan, scoder, vstinner, yselivanov
Date 2015-06-20.10:46:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1434797161.37.0.690255062917.issue24400@psf.upfronthosting.co.za>
In-reply-to
Content
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)".
History
Date User Action Args
2015-06-20 10:46:01ncoghlansetrecipients: + ncoghlan, gvanrossum, scoder, vstinner, asvetlov, Yury.Selivanov, Ben.Darnell, martin.panter, yselivanov
2015-06-20 10:46:01ncoghlansetmessageid: <1434797161.37.0.690255062917.issue24400@psf.upfronthosting.co.za>
2015-06-20 10:46:01ncoghlanlinkissue24400 messages
2015-06-20 10:46:01ncoghlancreate