summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorAlex Waygood <Alex.Waygood@Gmail.com>2023-12-12 20:36:51 (GMT)
committerGitHub <noreply@github.com>2023-12-12 20:36:51 (GMT)
commitb8a6eeec390ec3ff619bab59afd9b66e5d90725f (patch)
treee9262d5bb39f9f7d7081ae6808f43f97a940c740 /Doc/c-api
parentf78f6b6e89b9816d0a8de4bc7eaa01edb93e4b80 (diff)
downloadcpython-b8a6eeec390ec3ff619bab59afd9b66e5d90725f.zip
cpython-b8a6eeec390ec3ff619bab59afd9b66e5d90725f.tar.gz
cpython-b8a6eeec390ec3ff619bab59afd9b66e5d90725f.tar.bz2
[3.11] gh-101100: Further improve docs on function attributes (#113001) (#113031)
(cherry-picked from commit 81a15ea74e)
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/function.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/function.rst b/Doc/c-api/function.rst
index a6a864e..805c846 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.