8000 Update Argument Clinic generated code for bpo-29878. (#1001) · python/cpython@bae6881 · GitHub
[go: up one dir, main page]

Skip to content

Commit bae6881

Browse files
Update Argument Clinic generated code for bpo-29878. (#1001)
1 parent 5affd23 commit bae6881

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Objects/clinic/complexobject.c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ complex_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
1919
PyObject *return_value = NULL;
2020
static const char * const _keywords[] = {"real", "imag", NULL};
2121
static _PyArg_Parser _parser = {"|OO:complex", _keywords, 0};
22-
PyObject *r = Py_False;
22+
PyObject *r = _PyLong_Zero;
2323
PyObject *i = NULL;
2424

2525
if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser,
@@ -31,4 +31,4 @@ complex_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
3131
exit:
3232
return return_value;
3333
}
34-
/*[clinic end generated code: output=74035493480ab5e5 input=a9049054013a1b77]*/
34+
/*[clinic end generated code: output=5017b2458bdc4ecd input=a9049054013a1b77]*/

Objects/clinic/floatobject.c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ static PyObject *
171171
float_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
172172
{
173173
PyObject *return_value = NULL;
174-
PyObject *x = Py_False;
174+
PyObject *x = _PyLong_Zero;
175175

176176
if ((type == &PyFloat_Type) &&
177177
!_PyArg_NoKeywords("float", kwargs)) {
@@ -313,4 +313,4 @@ float___format__(PyObject *self, PyObject *arg)
313313
exit:
314314
return return_value;
315315
}
316-
/*[clinic end generated code: output=a3dafb0f6c6f1514 input=a9049054013a1b77]*/
316+
/*[clinic end generated code: output=dc6b0b67a7e40c93 input=a9049054013a1b77]*/

Objects/complexobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ This is equivalent to (real + imag*1j) where imag defaults to 0.
946946

947947
static PyObject *
948948
complex_new_impl(PyTypeObject *type, PyObject *r, PyObject *i)
949-
/*[clinic end generated code: output=b6c7dd577b537dc1 input=e3d6b77ddcf280da]*/
949+
/*[clinic end generated code: output=b6c7dd577b537dc1 input=6f6b0bedba29bcb5]*/
950950
{
951951
PyObject *tmp;
952952
PyNumberMethods *nbr, *nbi = NULL;

Objects/floatobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1619,7 +1619,7 @@ Convert a string or number to a floating point number, if possible.
16191619

16201620
static PyObject *
16211621
float_new_impl(PyTypeObject *type, PyObject *x)
1622-
/*[clinic end generated code: output=ccf1e8dc460ba6ba input=c98d8e811ad2037a]*/
1622+
/*[clinic end generated code: output=ccf1e8dc460ba6ba input=540ee77c204ff87a]*/
16231623
{
16241624
if (type != &PyFloat_Type)
16251625
return float_subtype_new(type, x); /* Wimp out */

0 commit comments

Comments
 (0)
0