Skip to content

Commit d7d3981

Browse files
pythongh-137609: Change names of some positional-only parameters in builtins
This is to pair with pythonGH-137610.
1 parent 046a4e3 commit d7d3981

File tree

2 files changed

+38
-38
lines changed

2 files changed

+38
-38
lines changed

Python/bltinmodule.c

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -289,17 +289,17 @@ builtin___import___impl(PyObject *module, PyObject *name, PyObject *globals,
289289
/*[clinic input]
290290
abs as builtin_abs
291291
292-
x: object
292+
number: object
293293
/
294294
295295
Return the absolute value of the argument.
296296
[clinic start generated code]*/
297297

298298
static PyObject *
299-
builtin_abs(PyObject *module, PyObject *x)
300-
/*[clinic end generated code: output=b1b433b9e51356f5 input=bed4ca14e29c20d1]*/
299+
builtin_abs(PyObject *module, PyObject *number)
300+
/*[clinic end generated code: output=861a9db97dee0595 input=a356196903543505]*/
301301
{
302-
return PyNumber_Absolute(x);
302+
return PyNumber_Absolute(number);
303303
}
304304

305305
/*[clinic input]
@@ -425,7 +425,7 @@ builtin_ascii(PyObject *module, PyObject *obj)
425425
/*[clinic input]
426426
bin as builtin_bin
427427
428-
number: object
428+
integer: object
429429
/
430430
431431
Return the binary representation of an integer.
@@ -435,10 +435,10 @@ Return the binary representation of an integer.
435435
[clinic start generated code]*/
436436

437437
static PyObject *
438-
builtin_bin(PyObject *module, PyObject *number)
439-
/*[clinic end generated code: output=b6fc4ad5e649f4f7 input=53f8a0264bacaf90]*/
438+
builtin_bin(PyObject *module, PyObject *integer)
439+
/*[clinic end generated code: output=533f9388441805cc input=d16518f148341e70]*/
440440
{
441-
return PyNumber_ToBase(number, 2);
441+
return PyNumber_ToBase(integer, 2);
442442
}
443443

444444

@@ -1779,7 +1779,7 @@ builtin_hash(PyObject *module, PyObject *obj)
17791779
/*[clinic input]
17801780
hex as builtin_hex
17811781
1782-
number: object
1782+
integer: object
17831783
/
17841784
17851785
Return the hexadecimal representation of an integer.
@@ -1789,10 +1789,10 @@ Return the hexadecimal representation of an integer.
17891789
[clinic start generated code]*/
17901790

17911791
static PyObject *
1792-
builtin_hex(PyObject *module, PyObject *number)
1793-
/*[clinic end generated code: output=e46b612169099408 input=e645aff5fc7d540e]*/
1792+
builtin_hex(PyObject *module, PyObject *integer)
1793+
/*[clinic end generated code: output=e5de857ba61aae08 input=3bef4746efc62fac]*/
17941794
{
1795-
return PyNumber_ToBase(number, 16);
1795+
return PyNumber_ToBase(integer, 16);
17961796
}
17971797

17981798

@@ -1846,7 +1846,7 @@ PyObject *PyAnextAwaitable_New(PyObject *, PyObject *);
18461846
/*[clinic input]
18471847
anext as builtin_anext
18481848
1849-
aiterator: object
1849+
async_iterator as aiterator: object
18501850
default: object = NULL
18511851
/
18521852
@@ -1859,7 +1859,7 @@ it is returned instead of raising StopAsyncIteration.
18591859
static PyObject *
18601860
builtin_anext_impl(PyObject *module, PyObject *aiterator,
18611861
PyObject *default_value)
1862-
/*[clinic end generated code: output=f02c060c163a81fa input=2900e4a370d39550]*/
1862+
/*[clinic end generated code: output=f02c060c163a81fa input=f3dc5a93f073e5ac]*/
18631863
{
18641864
PyTypeObject *t;
18651865
PyObject *awaitable;
@@ -2098,7 +2098,7 @@ With two or more positional arguments, return the largest argument.");
20982098
/*[clinic input]
20992099
oct as builtin_oct
21002100
2101-
number: object
2101+
integer: object
21022102
/
21032103
21042104
Return the octal representation of an integer.
@@ -2108,10 +2108,10 @@ Return the octal representation of an integer.
21082108
[clinic start generated code]*/
21092109

21102110
static PyObject *
2111-
builtin_oct(PyObject *module, PyObject *number)
2112-
/*[clinic end generated code: output=40a34656b6875352 input=ad6b274af4016c72]*/
2111+
builtin_oct(PyObject *module, PyObject *integer)
2112+
/*[clinic end generated code: output=8c15f2145a74c390 input=b97c377b15fedf8d]*/
21132113
{
2114-
return PyNumber_ToBase(number, 8);
2114+
return PyNumber_ToBase(integer, 8);
21152115
}
21162116

21172117

@@ -2192,7 +2192,7 @@ builtin_pow_impl(PyObject *module, PyObject *base, PyObject *exp,
21922192
/*[clinic input]
21932193
print as builtin_print
21942194
2195-
*args: array
2195+
*objects: array
21962196
sep: object(c_default="Py_None") = ' '
21972197
string inserted between values, default a space.
21982198
end: object(c_default="Py_None") = '\n'
@@ -2207,10 +2207,10 @@ Prints the values to a stream, or to sys.stdout by default.
22072207
[clinic start generated code]*/
22082208

22092209
static PyObject *
2210-
builtin_print_impl(PyObject *module, PyObject * const *args,
2211-
Py_ssize_t args_length, PyObject *sep, PyObject *end,
2210+
builtin_print_impl(PyObject *module, PyObject * const *objects,
2211+
Py_ssize_t objects_length, PyObject *sep, PyObject *end,
22122212
PyObject *file, int flush)
2213-
/*[clinic end generated code: output=3cb7e5b66f1a8547 input=66ea4de1605a2437]*/
2213+
/*[clinic end generated code: output=38d8def56c837bcc input=ff35cb3d59ee8115]*/
22142214
{
22152215
int i, err;
22162216

@@ -2251,7 +2251,7 @@ builtin_print_impl(PyObject *module, PyObject * const *args,
22512251
return NULL;
22522252
}
22532253

2254-
for (i = 0; i < args_length; i++) {
2254+
for (i = 0; i < objects_length; i++) {
22552255
if (i > 0) {
22562256
if (sep == NULL) {
22572257
err = PyFile_WriteString(" ", file);
@@ -2264,7 +2264,7 @@ builtin_print_impl(PyObject *module, PyObject * const *args,
22642264
return NULL;
22652265
}
22662266
}
2267-
err = PyFile_WriteObject(args[i], file, Py_PRINT_RAW);
2267+
err = PyFile_WriteObject(objects[i], file, Py_PRINT_RAW);
22682268
if (err) {
22692269
Py_DECREF(file);
22702270
return NULL;

Python/clinic/bltinmodule.c.h

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)