]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-107782: Pydoc: fall back to __text_signature__ if inspect.signature() fails (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 11 Aug 2023 17:51:36 +0000 (20:51 +0300)
committerGitHub <noreply@github.com>
Fri, 11 Aug 2023 17:51:36 +0000 (20:51 +0300)
commita39f0a350662f1978104ee1136472d784aa6f29c
treea13f5ab25aa3b11743d7d146524887dee88c1805
parent5f7d4ecf301ef12eb1d1d347add054f4fcd8fc5c
gh-107782: Pydoc: fall back to __text_signature__ if inspect.signature() fails (GH-107786)

It allows to show signatures which are not representable in Python,
e.g. for getattr and dict.pop.
Lib/pydoc.py
Lib/test/test_pydoc.py
Misc/NEWS.d/next/Library/2023-08-08-19-57-45.gh-issue-107782.mInjFE.rst [new file with mode: 0644]