diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-11-12 21:39:01 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-11-12 21:39:01 (GMT) |
commit | 3d4ca74bc85c4224498e75704f82e4d42b6a04df (patch) | |
tree | 44fcd6283791499aac9b5d3ee2b2e33ecf01df28 /Lib/inspect.py | |
parent | 3e8e9cc25d3ec1507a0e08028844205e92f488b7 (diff) | |
download | cpython-3d4ca74bc85c4224498e75704f82e4d42b6a04df.zip cpython-3d4ca74bc85c4224498e75704f82e4d42b6a04df.tar.gz cpython-3d4ca74bc85c4224498e75704f82e4d42b6a04df.tar.bz2 |
change the named tuple returned by inspect.getfullargspec to have a 'kwonlydefaults' (as claimed by the docs) attribute instead of 'kwdefaults'
Fixes #4307
Reviewed by Christian
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r-- | Lib/inspect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py index df1d4b6..3b58bd8 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -791,7 +791,7 @@ def getargspec(func): return ArgSpec(args, varargs, varkw, defaults) FullArgSpec = namedtuple('FullArgSpec', - 'args, varargs, varkw, defaults, kwonlyargs, kwdefaults, annotations') + 'args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations') def getfullargspec(func): """Get the names and default values of a function's arguments. |