diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-12-12 20:28:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 20:28:10 (GMT) |
commit | e328115254d7f3f092026747f65726088ce0a708 (patch) | |
tree | 4c9e18fa3a93c1450ea17baaaaf544141be82092 /Doc/c-api | |
parent | b884d21f10f228bef11980e076af53343e686463 (diff) | |
download | cpython-e328115254d7f3f092026747f65726088ce0a708.zip cpython-e328115254d7f3f092026747f65726088ce0a708.tar.gz cpython-e328115254d7f3f092026747f65726088ce0a708.tar.bz2 |
[3.12] gh-101100: Further improve docs on function attributes (GH-113001) (#113030)
gh-101100: Further improve docs on function attributes (GH-113001)
(cherry picked from commit 81a15ea74e2607728fceb822dfcc1aabff00478a)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/function.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/function.rst b/Doc/c-api/function.rst index 75a05b4..e7fb509 100644 --- a/Doc/c-api/function.rst +++ b/Doc/c-api/function.rst @@ -35,7 +35,7 @@ There are a few functions specific to Python functions. must be a dictionary with the global variables accessible to the function. The function's docstring and name are retrieved from the code object. - :func:`~function.__module__` + :attr:`~function.__module__` is retrieved from *globals*. The argument defaults, annotations and closure are set to ``NULL``. :attr:`~function.__qualname__` is set to the same value as the code object's :attr:`~codeobject.co_qualname` field. |