mirror of https://github.com/python/cpython
doc/inspect: Clarify docs for __defaults__, add docs for __kwdefaults__ #20380
This commit is contained in:
parent
2eed8b7da0
commit
ea2d66e68a
|
@ -69,7 +69,12 @@ attributes:
|
||||||
| | | :term:`bytecode` |
|
| | | :term:`bytecode` |
|
||||||
+-----------+-----------------+---------------------------+
|
+-----------+-----------------+---------------------------+
|
||||||
| | __defaults__ | tuple of any default |
|
| | __defaults__ | tuple of any default |
|
||||||
| | | values for arguments |
|
| | | values for positional or |
|
||||||
|
| | | keyword parameters |
|
||||||
|
+-----------+-----------------+---------------------------+
|
||||||
|
| | __kwdefaults__ | mapping of any default |
|
||||||
|
| | | values for keyword-only |
|
||||||
|
| | | parameters |
|
||||||
+-----------+-----------------+---------------------------+
|
+-----------+-----------------+---------------------------+
|
||||||
| | __globals__ | global namespace in which |
|
| | __globals__ | global namespace in which |
|
||||||
| | | this function was defined |
|
| | | this function was defined |
|
||||||
|
|
Loading…
Reference in New Issue