Commit 3d4ca74b authored by Benjamin Peterson's avatar Benjamin Peterson

change the named tuple returned by inspect.getfullargspec to have a...

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
parent 3e8e9cc2
...@@ -791,7 +791,7 @@ def getargspec(func): ...@@ -791,7 +791,7 @@ def getargspec(func):
return ArgSpec(args, varargs, varkw, defaults) return ArgSpec(args, varargs, varkw, defaults)
FullArgSpec = namedtuple('FullArgSpec', FullArgSpec = namedtuple('FullArgSpec',
'args, varargs, varkw, defaults, kwonlyargs, kwdefaults, annotations') 'args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations')
def getfullargspec(func): def getfullargspec(func):
"""Get the names and default values of a function's arguments. """Get the names and default values of a function's arguments.
......
...@@ -230,6 +230,7 @@ Gyro Funch ...@@ -230,6 +230,7 @@ Gyro Funch
Peter Funk Peter Funk
Geoff Furnish Geoff Furnish
Ulisses Furquim Ulisses Furquim
Hagen Frstenau
Achim Gaedke Achim Gaedke
Lele Gaifax Lele Gaifax
Santiago Gala Santiago Gala
......
...@@ -19,6 +19,9 @@ Core and Builtins ...@@ -19,6 +19,9 @@ Core and Builtins
Library 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 #4298: Fix a segfault when pickle.loads is passed a ill-formed input.
- Issue #4283: Fix a left-over "iteritems" call in distutils. - Issue #4283: Fix a left-over "iteritems" call in distutils.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment