summaryrefslogtreecommitdiffstats
path: root/Objects/clinic
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-01-19 17:38:13 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2017-01-19 17:38:13 (GMT)
commita70eaf21e3f0922efc4217694d2009b0b00d62e9 (patch)
treeeea3d8aba8ce9a622af5e2f9cb2502ad30ef8da7 /Objects/clinic
parent48088ee9bae9bd7ceff491cb0bc82e4394c7ec23 (diff)
downloadcpython-a70eaf21e3f0922efc4217694d2009b0b00d62e9.zip
cpython-a70eaf21e3f0922efc4217694d2009b0b00d62e9.tar.gz
cpython-a70eaf21e3f0922efc4217694d2009b0b00d62e9.tar.bz2
Issue #29289: Argument Clinic generates reasonable name for the parameter "default".
Diffstat (limited to 'Objects/clinic')
-rw-r--r--Objects/clinic/odictobject.c.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Objects/clinic/odictobject.c.h b/Objects/clinic/odictobject.c.h
index 5543f94..ee35af6 100644
--- a/Objects/clinic/odictobject.c.h
+++ b/Objects/clinic/odictobject.c.h
@@ -46,7 +46,7 @@ PyDoc_STRVAR(OrderedDict_setdefault__doc__,
static PyObject *
OrderedDict_setdefault_impl(PyODictObject *self, PyObject *key,
- PyObject *failobj);
+ PyObject *default_value);
static PyObject *
OrderedDict_setdefault(PyODictObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames)
@@ -55,13 +55,13 @@ OrderedDict_setdefault(PyODictObject *self, PyObject **args, Py_ssize_t nargs, P
static const char * const _keywords[] = {"key", "default", NULL};
static _PyArg_Parser _parser = {"O|O:setdefault", _keywords, 0};
PyObject *key;
- PyObject *failobj = Py_None;
+ PyObject *default_value = Py_None;
if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser,
- &key, &failobj)) {
+ &key, &default_value)) {
goto exit;
}
- return_value = OrderedDict_setdefault_impl(self, key, failobj);
+ return_value = OrderedDict_setdefault_impl(self, key, default_value);
exit:
return return_value;
@@ -132,4 +132,4 @@ OrderedDict_move_to_end(PyODictObject *self, PyObject **args, Py_ssize_t nargs,
exit:
return return_value;
}
-/*[clinic end generated code: output=f2641e1277045b59 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=84ef19e7b5db0086 input=a9049054013a1b77]*/