diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-11-08 05:41:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-08 05:41:54 (GMT) |
commit | 06a8b0bb5ee0d01ed93315137c41c104a11e4640 (patch) | |
tree | ac2d8c1fe90ecba50c2dfc3e74fa79af7cd7a067 /Modules | |
parent | c222441fa7f89d448e476c252ba09be588568392 (diff) | |
download | cpython-06a8b0bb5ee0d01ed93315137c41c104a11e4640.zip cpython-06a8b0bb5ee0d01ed93315137c41c104a11e4640.tar.gz cpython-06a8b0bb5ee0d01ed93315137c41c104a11e4640.tar.bz2 |
gh-122943: Remove the object converter for var-positional parameter (GH-126560)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_testclinic.c | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/Modules/_testclinic.c b/Modules/_testclinic.c index 320c8dd..a5c4a4c 100644 --- a/Modules/_testclinic.c +++ b/Modules/_testclinic.c @@ -980,13 +980,13 @@ keyword_only_parameter_impl(PyObject *module, PyObject *a) /*[clinic input] varpos - *args: object + *args: tuple [clinic start generated code]*/ static PyObject * varpos_impl(PyObject *module, PyObject *args) -/*[clinic end generated code: output=7b0b9545872bdca4 input=f87cd674145d394c]*/ +/*[clinic end generated code: output=7b0b9545872bdca4 input=ae7ccecd997aaff4]*/ { return Py_NewRef(args); } @@ -998,14 +998,14 @@ posonly_varpos a: object b: object / - *args: object + *args: tuple [clinic start generated code]*/ static PyObject * posonly_varpos_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *args) -/*[clinic end generated code: output=5dae5eb2a0d623cd input=c9fd7895cfbaabba]*/ +/*[clinic end generated code: output=5dae5eb2a0d623cd input=6dd74417b62cbe67]*/ { return pack_arguments_newref(3, a, b, args); } @@ -1017,14 +1017,14 @@ posonly_req_opt_varpos a: object b: object = False / - *args: object + *args: tuple [clinic start generated code]*/ static PyObject * posonly_req_opt_varpos_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *args) -/*[clinic end generated code: output=67f82f90838e166a input=a49bd64740171e1c]*/ +/*[clinic end generated code: output=67f82f90838e166a input=e08ed48926a5b760]*/ { return pack_arguments_newref(3, a, b, args); } @@ -1036,14 +1036,14 @@ posonly_poskw_varpos a: object / b: object - *args: object + *args: tuple [clinic start generated code]*/ static PyObject * posonly_poskw_varpos_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *args) -/*[clinic end generated code: output=bffdb7649941c939 input=b3d7a734e0625f68]*/ +/*[clinic end generated code: output=bffdb7649941c939 input=e5a2c4cab6745ca1]*/ { return pack_arguments_newref(3, a, b, args); } @@ -1053,13 +1053,13 @@ posonly_poskw_varpos_impl(PyObject *module, PyObject *a, PyObject *b, poskw_varpos a: object - *args: object + *args: tuple [clinic start generated code]*/ static PyObject * poskw_varpos_impl(PyObject *module, PyObject *a, PyObject *args) -/*[clinic end generated code: output=2413ddfb5ef22794 input=a1dff12d00422484]*/ +/*[clinic end generated code: output=2413ddfb5ef22794 input=e78114436a07aefe]*/ { return pack_arguments_newref(2, a, args); } @@ -1069,7 +1069,7 @@ poskw_varpos_impl(PyObject *module, PyObject *a, PyObject *args) poskw_varpos_kwonly_opt a: object - *args: object + *args: tuple b: bool = False [clinic start generated code]*/ @@ -1077,7 +1077,7 @@ poskw_varpos_kwonly_opt static PyObject * poskw_varpos_kwonly_opt_impl(PyObject *module, PyObject *a, PyObject *args, int b) -/*[clinic end generated code: output=f36d35ba6133463b input=1721d43dc5f6d856]*/ +/*[clinic end generated code: output=f36d35ba6133463b input=ebecfb189f4a3380]*/ { PyObject *obj_b = b ? Py_True : Py_False; return pack_arguments_newref(3, a, args, obj_b); @@ -1088,7 +1088,7 @@ poskw_varpos_kwonly_opt_impl(PyObject *module, PyObject *a, PyObject *args, poskw_varpos_kwonly_opt2 a: object - *args: object + *args: tuple b: object = False c: object = False @@ -1097,7 +1097,7 @@ poskw_varpos_kwonly_opt2 static PyObject * poskw_varpos_kwonly_opt2_impl(PyObject *module, PyObject *a, PyObject *args, PyObject *b, PyObject *c) -/*[clinic end generated code: output=846cef62c6c40463 input=bb4b8d1577a8a408]*/ +/*[clinic end generated code: output=846cef62c6c40463 input=1aff29829431f711]*/ { return pack_arguments_newref(4, a, args, b, c); } @@ -1106,14 +1106,14 @@ poskw_varpos_kwonly_opt2_impl(PyObject *module, PyObject *a, PyObject *args, /*[clinic input] varpos_kwonly_opt - *args: object + *args: tuple b: object = False [clinic start generated code]*/ static PyObject * varpos_kwonly_opt_impl(PyObject *module, PyObject *args, PyObject *b) -/*[clinic end generated code: output=3b7bf98b091f5731 input=380fb00deec847e8]*/ +/*[clinic end generated code: output=3b7bf98b091f5731 input=1bec50dc49fca2eb]*/ { return pack_arguments_newref(2, args, b); } @@ -1122,7 +1122,7 @@ varpos_kwonly_opt_impl(PyObject *module, PyObject *args, PyObject *b) /*[clinic input] varpos_kwonly_req_opt - *args: object + *args: tuple a: object b: object = False c: object = False @@ -1132,7 +1132,7 @@ varpos_kwonly_req_opt static PyObject * varpos_kwonly_req_opt_impl(PyObject *module, PyObject *args, PyObject *a, PyObject *b, PyObject *c) -/*[clinic end generated code: output=165274e1fd037ae9 input=530794afd0690c22]*/ +/*[clinic end generated code: output=165274e1fd037ae9 input=355271f6119bb6c8]*/ { return pack_arguments_newref(4, args, a, b, c); } @@ -1219,7 +1219,7 @@ gh_32092_oob pos1: object pos2: object - *varargs: object + *varargs: tuple kw1: object = None kw2: object = None @@ -1230,7 +1230,7 @@ Proof-of-concept of GH-32092 OOB bug. static PyObject * gh_32092_oob_impl(PyObject *module, PyObject *pos1, PyObject *pos2, PyObject *varargs, PyObject *kw1, PyObject *kw2) -/*[clinic end generated code: output=ee259c130054653f input=46d15c881608f8ff]*/ +/*[clinic end generated code: output=ee259c130054653f input=63aeeca881979b91]*/ { Py_RETURN_NONE; } @@ -1240,7 +1240,7 @@ gh_32092_oob_impl(PyObject *module, PyObject *pos1, PyObject *pos2, gh_32092_kw_pass pos: object - *args: object + *args: tuple kw: object = None Proof-of-concept of GH-32092 keyword args passing bug. @@ -1250,7 +1250,7 @@ Proof-of-concept of GH-32092 keyword args passing bug. static PyObject * gh_32092_kw_pass_impl(PyObject *module, PyObject *pos, PyObject *args, PyObject *kw) -/*[clinic end generated code: output=4a2bbe4f7c8604e9 input=5c0bd5b9079a0cce]*/ +/*[clinic end generated code: output=4a2bbe4f7c8604e9 input=258987971f3ee97a]*/ { Py_RETURN_NONE; } @@ -1259,7 +1259,7 @@ gh_32092_kw_pass_impl(PyObject *module, PyObject *pos, PyObject *args, /*[clinic input] gh_99233_refcount - *args: object + *args: tuple Proof-of-concept of GH-99233 refcount error bug. @@ -1267,7 +1267,7 @@ Proof-of-concept of GH-99233 refcount error bug. static PyObject * gh_99233_refcount_impl(PyObject *module, PyObject *args) -/*[clinic end generated code: output=585855abfbca9a7f input=eecfdc2092d90dc3]*/ +/*[clinic end generated code: output=585855abfbca9a7f input=f5204359fd852613]*/ { Py_RETURN_NONE; } @@ -1295,7 +1295,7 @@ gh_99240_double_free_impl(PyObject *module, char *a, char *b) null_or_tuple_for_varargs name: object - *constraints: object + *constraints: tuple covariant: bool = False See https://github.com/python/cpython/issues/110864 @@ -1304,7 +1304,7 @@ See https://github.com/python/cpython/issues/110864 static PyObject * null_or_tuple_for_varargs_impl(PyObject *module, PyObject *name, PyObject *constraints, int covariant) -/*[clinic end generated code: output=a785b35421358983 input=c9bce186637956b3]*/ +/*[clinic end generated code: output=a785b35421358983 input=4df930e019f32878]*/ { assert(name != NULL); assert(constraints != NULL); @@ -1412,13 +1412,13 @@ _testclinic_TestClass_get_defining_class_arg_impl(PyObject *self, /*[clinic input] _testclinic.TestClass.defclass_varpos cls: defining_class - *args: object + *args: tuple [clinic start generated code]*/ static PyObject * _testclinic_TestClass_defclass_varpos_impl(PyObject *self, PyTypeObject *cls, PyObject *args) -/*[clinic end generated code: output=fad33f2d3a8d778d input=47071dcda393a7e1]*/ +/*[clinic end generated code: output=fad33f2d3a8d778d input=332043286e393d38]*/ { return PyTuple_Pack(2, cls, args); } @@ -1429,7 +1429,7 @@ _testclinic.TestClass.defclass_posonly_varpos a: object b: object / - *args: object + *args: tuple [clinic start generated code]*/ static PyObject * @@ -1437,7 +1437,7 @@ _testclinic_TestClass_defclass_posonly_varpos_impl(PyObject *self, PyTypeObject *cls, PyObject *a, PyObject *b, PyObject *args) -/*[clinic end generated code: output=1740fcf48d230b07 input=40f2e56286d4a7ef]*/ +/*[clinic end generated code: output=1740fcf48d230b07 input=191da4557203c413]*/ { return pack_arguments_newref(4, cls, a, b, args); } @@ -1447,13 +1447,13 @@ _testclinic_TestClass_defclass_posonly_varpos_impl(PyObject *self, @classmethod _testclinic.TestClass.__new__ as varpos_no_fastcall - *args: object + *args: tuple [clinic start generated code]*/ static PyObject * varpos_no_fastcall_impl(PyTypeObject *type, PyObject *args) -/*[clinic end generated code: output=04e94f2898bb2dde input=b0447ebab3e81001]*/ +/*[clinic end generated code: output=04e94f2898bb2dde input=c5d3d30a6589f97f]*/ { return Py_NewRef(args); } @@ -1466,14 +1466,14 @@ _testclinic.TestClass.__new__ as posonly_varpos_no_fastcall a: object b: object / - *args: object + *args: tuple [clinic start generated code]*/ static PyObject * posonly_varpos_no_fastcall_impl(PyTypeObject *type, PyObject *a, PyObject *b, PyObject *args) -/*[clinic end generated code: output=b0a0425719f69f5a input=d2ec37a06b3c2389]*/ +/*[clinic end generated code: output=b0a0425719f69f5a input=10f29f2c2c6bfdc4]*/ { return pack_arguments_newref(3, a, b, args); } @@ -1486,14 +1486,14 @@ _testclinic.TestClass.__new__ as posonly_req_opt_varpos_no_fastcall a: object b: object = False / - *args: object + *args: tuple [clinic start generated code]*/ static PyObject * posonly_req_opt_varpos_no_fastcall_impl(PyTypeObject *type, PyObject *a, PyObject *b, PyObject *args) -/*[clinic end generated code: output=3c44915b1a554e2d input=e9e74686a5e6a06d]*/ +/*[clinic end generated code: output=3c44915b1a554e2d input=d319302a8748147c]*/ { return pack_arguments_newref(3, a, b, args); } @@ -1506,14 +1506,14 @@ _testclinic.TestClass.__new__ as posonly_poskw_varpos_no_fastcall a: object / b: object - *args: object + *args: tuple [clinic start generated code]*/ static PyObject * posonly_poskw_varpos_no_fastcall_impl(PyTypeObject *type, PyObject *a, PyObject *b, PyObject *args) -/*[clinic end generated code: output=6ad74bed4bdc7f96 input=fa931c38184213aa]*/ +/*[clinic end generated code: output=6ad74bed4bdc7f96 input=1f8c113e749414a3]*/ { return pack_arguments_newref(3, a, b, args); } |