mirror of
https://github.com/python/cpython.git
synced 2025-08-08 19:09:46 +00:00
gh-101100: Further improve docs on function attributes (#113001)
This commit is contained in:
parent
956023826a
commit
81a15ea74e
2 changed files with 7 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue