summaryrefslogtreecommitdiffstats
path: root/Lib/inspect.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2014-07-15 19:29:11 (GMT)
committerGuido van Rossum <guido@python.org>2014-07-15 19:29:11 (GMT)
commite82881cea7a0cab6145a2071b08665c8e9ec9d31 (patch)
treebe9d4ff4ebefd9c8272d1580c6948d8f76b531da /Lib/inspect.py
parent992334127e72c058cf5bd83ed458203e5ebfd74a (diff)
downloadcpython-e82881cea7a0cab6145a2071b08665c8e9ec9d31.zip
cpython-e82881cea7a0cab6145a2071b08665c8e9ec9d31.tar.gz
cpython-e82881cea7a0cab6145a2071b08665c8e9ec9d31.tar.bz2
Fix getargspec() doctring (varkw -> keywords).
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r--Lib/inspect.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py
index b9cdcc2..f6b5bad 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -914,10 +914,9 @@ ArgSpec = namedtuple('ArgSpec', 'args varargs keywords defaults')
def getargspec(func):
"""Get the names and default values of a function's arguments.
- A tuple of four things is returned: (args, varargs, varkw, defaults).
- 'args' is a list of the argument names.
- 'args' will include keyword-only argument names.
- 'varargs' and 'varkw' are the names of the * and ** arguments or None.
+ A tuple of four things is returned: (args, varargs, keywords, defaults).
+ 'args' is a list of the argument names, including keyword-only argument names.
+ 'varargs' and 'keywords' are the names of the * and ** arguments or None.
'defaults' is an n-tuple of the default values of the last n arguments.
Use the getfullargspec() API for Python 3 code, as annotations