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 Ben.Darnell
Recipients Ben.Darnell, Yury.Selivanov, asvetlov, gvanrossum, ncoghlan, scoder, vstinner, yselivanov
Date 2015-06-10.14:31:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
With the two changes I described things appear to be working, although I've only done light testing so far.

For inspect.isgenerator(), my use case is here:

I currently do isinstance(x, types.GeneratorType), which will fail if x is actually a GeneratorWrapper. I can change this to use when it exists, but then I'd have to have some conditional logic to switch between and types depending on what version I'm running on. It would be nice if that were encapsulated in inspect.isgenerator(). 

More generally, the inconsistency between isgenerator() and iscoroutine() is kind of odd. I would expect that either all inspect functions or none of them would use a suitable ABC if one exists.
Date User Action Args
2015-06-10 14:31:10Ben.Darnellsetrecipients: + Ben.Darnell, gvanrossum, ncoghlan, scoder, vstinner, asvetlov, Yury.Selivanov, yselivanov
2015-06-10 14:31:10Ben.Darnellsetmessageid: <>
2015-06-10 14:31:10Ben.Darnelllinkissue24400 messages
2015-06-10 14:31:10Ben.Darnellcreate