[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: 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 
<http://bugs.python.org/issue29987>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/issue29987>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com