]> granicus.if.org Git - python/commitdiff
Fix getargspec() doctring (varkw -> keywords).
authorGuido van Rossum <guido@python.org>
Tue, 15 Jul 2014 19:29:11 +0000 (12:29 -0700)
committerGuido van Rossum <guido@python.org>
Tue, 15 Jul 2014 19:29:11 +0000 (12:29 -0700)
Lib/inspect.py

index b9cdcc25618a3138734f0ae0864576e3ab34b47b..f6b5badc3f7e1683a97ca2803a827daed617dbcb 100644 (file)
@@ -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