Message245557
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)". |
|
Date |
User |
Action |
Args |
2015-06-20 10:46:01 | ncoghlan | set | recipients:
+ ncoghlan, gvanrossum, scoder, vstinner, asvetlov, Yury.Selivanov, Ben.Darnell, martin.panter, yselivanov |
2015-06-20 10:46:01 | ncoghlan | set | messageid: <1434797161.37.0.690255062917.issue24400@psf.upfronthosting.co.za> |
2015-06-20 10:46:01 | ncoghlan | link | issue24400 messages |
2015-06-20 10:46:01 | ncoghlan | create | |
|