]> granicus.if.org Git - python/commitdiff
doc/inspect: Clarify docs for __defaults__, add docs for __kwdefaults__ #20380
authorYury Selivanov <yselivanov@sprymix.com>
Mon, 27 Jan 2014 19:26:28 +0000 (14:26 -0500)
committerYury Selivanov <yselivanov@sprymix.com>
Mon, 27 Jan 2014 19:26:28 +0000 (14:26 -0500)
Doc/library/inspect.rst

index 06956109602ba14dde7847d00a0c1aa054e41873..0a3a5718a720c8f314e77f75b6f0af93ae8b4eb6 100644 (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 |