mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
inspect.signature: Support duck-types of Python functions (Cython, for instance) #17159
This commit is contained in:
parent
4ded1f3553
commit
63da7c7b0c
4 changed files with 97 additions and 2 deletions
|
@ -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
|
||||
-------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue