]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-82062: Fix support of parameter defaults on methods in extension modules (GH-115270)
authorSergey B Kirpichev <skirpichev@gmail.com>
Thu, 2 May 2024 14:44:33 +0000 (17:44 +0300)
committerGitHub <noreply@github.com>
Thu, 2 May 2024 14:44:33 +0000 (17:44 +0300)
commit9789440de387219bb7677fe0d66860aa8c9deb02
tree16f2ec47bb5d900e49a3c3bec3aca740e853143f
parent81939dad77001556c527485d31a2d0f4a759033e
gh-82062: Fix support of parameter defaults on methods in extension modules (GH-115270)

Now inspect.signature() supports references to the module globals in
parameter defaults on methods in extension modules.  Previously it was
only supported in functions.  The workaround was to specify the fully
qualified name, including the module name.
Lib/inspect.py
Lib/test/test_inspect/test_inspect.py
Misc/NEWS.d/next/Library/2024-02-11-07-31-43.gh-issue-82062.eeS6w7.rst [new file with mode: 0644]
Modules/_testcapi/docstring.c