mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Fix getargspec() doctring (varkw -> keywords).
This commit is contained in:
parent
992334127e
commit
e82881cea7
1 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue