summaryrefslogtreecommitdiffstats
path: root/Doc/library/inspect.rst
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2014-01-27 19:26:28 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2014-01-27 19:26:28 (GMT)
commitea2d66e68a6901d886e17ab56f98299dbd65150a (patch)
tree3e954ef057b7f4d2524a1d0dcecb2cd77f2268d9 /Doc/library/inspect.rst
parent2eed8b7da06fe865b6246590d4b13cf723f547cd (diff)
downloadcpython-ea2d66e68a6901d886e17ab56f98299dbd65150a.zip
cpython-ea2d66e68a6901d886e17ab56f98299dbd65150a.tar.gz
cpython-ea2d66e68a6901d886e17ab56f98299dbd65150a.tar.bz2
doc/inspect: Clarify docs for __defaults__, add docs for __kwdefaults__ #20380
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r--Doc/library/inspect.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index 0695610..0a3a571 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 |