[Python-Dev] feature request: inspect.isgenerator

Georg Brandl g.brandl at gmx.net
Thu Jun 1 14:20:45 CEST 2006

Michele Simionato wrote:
> 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?

Add GeneratorType where? There is already one in the types module.


More information about the Python-Dev mailing list