doc/inspect: Clarify docs for __defaults__, add docs for __kwdefaults__ #20380

This commit is contained in:
Yury Selivanov 2014-01-27 14:26:28 -05:00
parent 2eed8b7da0
commit ea2d66e68a
1 changed files with 6 additions and 1 deletions

View File

@ -69,7 +69,12 @@ attributes:
| | | :term:`bytecode` |
+-----------+-----------------+---------------------------+
| | __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 |
| | | this function was defined |