From ea2d66e68a6901d886e17ab56f98299dbd65150a Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Mon, 27 Jan 2014 14:26:28 -0500 Subject: [PATCH] doc/inspect: Clarify docs for __defaults__, add docs for __kwdefaults__ #20380 --- Doc/library/inspect.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 06956109602..0a3a5718a72 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -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 |