[issue46722] Different behavior for functiools.partial between inspect.isfunction() and other inspect.is*function()

Iliya Zinoviev report at bugs.python.org
Sat Feb 12 07:47:25 EST 2022


Iliya Zinoviev <mrmar333 at yandex.ru> added the comment:

Kevin, thanks for answer!

In that case, I may conclude isgeneratorfunction,
iscoroutinefunction, isasyncgenfunction from python3.7 are more determinated, in my view, cause partial obj has `func` attr for interaction with these funcs anyway, so it isn't need of an alternative.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46722>
_______________________________________


More information about the Python-bugs-list mailing list