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 gvanrossum
Recipients gvanrossum, lukasz.langa, martin.panter, pitrou, rhettinger, scoder, vstinner, yselivanov
Date 2015-04-21.15:19:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429629571.48.0.0289996634976.issue24018@psf.upfronthosting.co.za>
In-reply-to
Content
Is it an option to leave inspect alone? Its definition and use of generators is very focused on the builtin implementation.

Although this means that code that wants to do the right thing but also be backwards compatible has to use something like
```
def isgen(g):
    if hasattr(collections.abc, 'Generator'):
        return isinstance(c, collections.abc.Generator)
    else:
        return inspect.isgenerator(g)
```
History
Date User Action Args
2015-04-21 15:19:31gvanrossumsetrecipients: + gvanrossum, rhettinger, pitrou, scoder, vstinner, lukasz.langa, martin.panter, yselivanov
2015-04-21 15:19:31gvanrossumsetmessageid: <1429629571.48.0.0289996634976.issue24018@psf.upfronthosting.co.za>
2015-04-21 15:19:31gvanrossumlinkissue24018 messages
2015-04-21 15:19:31gvanrossumcreate