[Python-Dev] feature request: inspect.isgenerator (original) (raw)
Michele Simionato michele.simionato at gmail.com
Mon May 29 09:29:53 CEST 2006
- Previous message: [Python-Dev] ssize_t: ints in header files
- Next message: [Python-Dev] feature request: inspect.isgenerator
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Is there still time for new feature requests in Python 2.5? I am missing a isgenerator function in the inspect module. Right now I am using
def isgenerator(func): return func.func_code.co_flags == 99
but it is rather ugly (horrible indeed).
Michele Simionato
- Previous message: [Python-Dev] ssize_t: ints in header files
- Next message: [Python-Dev] feature request: inspect.isgenerator
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]