cpython: doc/inspect: Clarify docs for __defaults__, add docs for __kwdefaults__ #20380
http://hg.python.org/cpython/rev/fc32459495fc changeset: 88777:fc32459495fc user: Yury Selivanov <yselivanov@sprymix.com> date: Mon Jan 27 14:26:28 2014 -0500 summary: doc/inspect: Clarify docs for __defaults__, add docs for __kwdefaults__ #20380 files: Doc/library/inspect.rst | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -69,7 +69,12 @@ | | | :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 | -- Repository URL: http://hg.python.org/cpython
participants (1)
-
yury.selivanov