mirror of https://github.com/python/cpython.git
![]() * bpo-38364: unwrap partialmethods just like we unwrap partials The inspect.isgeneratorfunction, inspect.iscoroutinefunction and inspect.isasyncgenfunction already unwrap functools.partial objects, this patch adds support for partialmethod objects as well. Also: Rename _partialmethod to __partialmethod__. Since we're checking this attribute on arbitrary function-like objects, we should use the namespace reserved for core Python. --------- Co-authored-by: Petr Viktorin <encukou@gmail.com> |
||
---|---|---|
.. | ||
__init__.py | ||
inspect_fodder.py | ||
inspect_fodder2.py | ||
inspect_stock_annotations.py | ||
inspect_stringized_annotations.py | ||
inspect_stringized_annotations_2.py | ||
test_inspect.py |