[issue34890] Support functools.partial in inspect.is*function() checks

Yury Selivanov report at bugs.python.org
Thu Oct 4 11:32:54 EDT 2018


Yury Selivanov <yselivanov at gmail.com> added the comment:

I think the fact that `inspect.isfunction` recognizes partials is a very strong argument to enable inspect.iscoroutinefunction to do so as well.  

This is a backwards incompatible change though, strictly speaking.

----------

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


More information about the Python-bugs-list mailing list