diff options
author | Alex Waygood <Alex.Waygood@Gmail.com> | 2023-12-12 20:36:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 20:36:51 (GMT) |
commit | b8a6eeec390ec3ff619bab59afd9b66e5d90725f (patch) | |
tree | e9262d5bb39f9f7d7081ae6808f43f97a940c740 /Doc/c-api | |
parent | f78f6b6e89b9816d0a8de4bc7eaa01edb93e4b80 (diff) | |
download | cpython-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.rst | 2 |
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. |