[New-bugs-announce] [issue29987] inspect.isgeneratorfunction not working with partial functions

Thomas Antony report at bugs.python.org
Tue Apr 4 19:35:15 EDT 2017


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: testcode.py
messages: 291147
nosy: Thomas Antony
priority: normal
severity: normal
status: open
title: inspect.isgeneratorfunction not working with partial functions
versions: Python 3.5
Added file: http://bugs.python.org/file46776/testcode.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29987>
_______________________________________


More information about the New-bugs-announce mailing list