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 <>
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(, 'Generator'):
        return isinstance(c,
        return inspect.isgenerator(g)
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: <>
2015-04-21 15:19:31gvanrossumlinkissue24018 messages
2015-04-21 15:19:31gvanrossumcreate