[Python-Dev] feature request: inspect.isgenerator

Michele Simionato michele.simionato at gmail.com
Thu Jun 1 13:47:54 CEST 2006


Georg Brandl <g.brandl <at> gmx.net> writes:

> I'd say, go ahead and write a patch including docs, and I think there's no
> problem with accepting it (as long as it comes before beta1).

I was having a look at http://docs.python.org/dev/lib/inspect-types.html
and it would seem that adding isgenerator would imply changing
inspect.getmembers() and its documentation. Also, should one add
a GeneratorType, perhaps as a subclass of FunctionType?



More information about the Python-Dev mailing list