inspect.signature: Support duck-types of Python functions (Cython, for instance) #17159

This commit is contained in:
Yury Selivanov 2014-01-31 14:48:37 -05:00
parent 4ded1f3553
commit 63da7c7b0c
4 changed files with 97 additions and 2 deletions

View file

@ -793,6 +793,10 @@ callables that follow ``__signature__`` protocol. It is still
recommended to update your code to use :func:`~inspect.signature`
directly. (Contributed by Yury Selivanov in :issue:`17481`)
:func:`~inspect.signature` now supports duck types of CPython functions,
which adds support for functions compiled with Cython. (Contributed
by Stefan Behnel and Yury Selivanov in :issue:`17159`)
logging
-------