summaryrefslogtreecommitdiff
path: root/Objects/clinic
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-04-05 12:00:42 +0300
committerGitHub <noreply@github.com>2017-04-05 12:00:42 +0300
commitbae6881b4215b2613ad08ef0dc7bed7743c2b8cc (patch)
tree927679a599d42527b25585042779f78395d5e45d /Objects/clinic
parent5affd23e6f42125998724787025080a24839266e (diff)
downloadcpython-git-bae6881b4215b2613ad08ef0dc7bed7743c2b8cc.tar.gz
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 b0b4c0e9c0..0cbfb793e1 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 d2680b5e1f..d9ac39dd35 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]*/