summaryrefslogtreecommitdiffstats
path: root/Objects/clinic
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-04-05 09:00:42 (GMT)
committerGitHub <noreply@github.com>2017-04-05 09:00:42 (GMT)
commitbae6881b4215b2613ad08ef0dc7bed7743c2b8cc (patch)
tree927679a599d42527b25585042779f78395d5e45d /Objects/clinic
parent5affd23e6f42125998724787025080a24839266e (diff)
downloadcpython-bae6881b4215b2613ad08ef0dc7bed7743c2b8cc.zip
cpython-bae6881b4215b2613ad08ef0dc7bed7743c2b8cc.tar.gz
cpython-bae6881b4215b2613ad08ef0dc7bed7743c2b8cc.tar.bz2
Update Argument Clinic generated code for bpo-29878. (#1001)
Diffstat (limited to 'Objects/clinic')
-rw-r--r--Objects/clinic/complexobject.c.h4
-rw-r--r--Objects/clinic/floatobject.c.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/Objects/clinic/complexobject.c.h b/Objects/clinic/complexobject.c.h
index b0b4c0e..0cbfb79 100644
--- a/Objects/clinic/complexobject.c.h
+++ b/Objects/clinic/complexobject.c.h
@@ -19,7 +19,7 @@ complex_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
PyObject *return_value = NULL;
static const char * const _keywords[] = {"real", "imag", NULL};
static _PyArg_Parser _parser = {"|OO:complex", _keywords, 0};
- PyObject *r = Py_False;
+ PyObject *r = _PyLong_Zero;
PyObject *i = NULL;
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser,
@@ -31,4 +31,4 @@ complex_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
exit:
return return_value;
}
-/*[clinic end generated code: output=74035493480ab5e5 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=5017b2458bdc4ecd input=a9049054013a1b77]*/
diff --git a/Objects/clinic/floatobject.c.h b/Objects/clinic/floatobject.c.h
index d2680b5..d9ac39d 100644
--- a/Objects/clinic/floatobject.c.h
+++ b/Objects/clinic/floatobject.c.h
@@ -171,7 +171,7 @@ static PyObject *
float_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
{
PyObject *return_value = NULL;
- PyObject *x = Py_False;
+ PyObject *x = _PyLong_Zero;
if ((type == &PyFloat_Type) &&
!_PyArg_NoKeywords("float", kwargs)) {
@@ -313,4 +313,4 @@ float___format__(PyObject *self, PyObject *arg)
exit:
return return_value;
}
-/*[clinic end generated code: output=a3dafb0f6c6f1514 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=dc6b0b67a7e40c93 input=a9049054013a1b77]*/