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
This commit is contained in:
Benjamin Peterson 2008-11-12 21:39:01 +00:00
parent 3e8e9cc25d
commit 3d4ca74bc8
3 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -230,6 +230,7 @@ Gyro Funch
Peter Funk
Geoff Furnish
Ulisses Furquim
Hagen Fürstenau
Achim Gaedke
Lele Gaifax
Santiago Gala

View File

@ -19,6 +19,9 @@ Core and Builtins
Library
-------
- Issue #4307: The named tuple that ``inspect.getfullargspec()`` returns now
uses ``kwonlydefaults`` instead of ``kwdefaults``.
- Issue #4298: Fix a segfault when pickle.loads is passed a ill-formed input.
- Issue #4283: Fix a left-over "iteritems" call in distutils.