[issue29987] inspect.isgeneratorfunction not working with partial functions

2017-04-04 Thread Thomas Antony
New submission from Thomas Antony: When inspect.isgeneratorfunction is called on the output of functools.partial, it returns False even if the original function was a generator function. Test case is attached. Tested in fresh conda environment running Python 3.6.1 -- files

[issue29987] inspect.isgeneratorfunction not working with partial functions

2017-04-04 Thread Thomas Antony
Changes by Thomas Antony : -- versions: +Python 3.6 ___ Python tracker <http://bugs.python.org/issue29987> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29987] inspect.isgeneratorfunction not working with partial functions

2017-04-04 Thread Thomas Antony
Thomas Antony added the comment: Is there any way to distinguish such callables from "normal" functions without actually calling them? -- ___ Python tracker <http://bugs.python.o