@@ -4198,44 +4198,6 @@ static PyObject *
41984198test_vararg_and_posonly_impl (PyObject * module , PyObject * a , PyObject * args )
41994199/*[clinic end generated code: output=0c11c475e240869e input=2c49a482f68545c0]*/
42004200
4201- PyDoc_STRVAR (test_vararg_and_posonly__doc__ ,
4202- "test_vararg_and_posonly($module, a, /, *args)\n"
4203- "--\n"
4204- "\n" );
4205-
4206- #define TEST_VARARG_AND_POSONLY_METHODDEF \
4207- {"test_vararg_and_posonly", _PyCFunction_CAST(test_vararg_and_posonly), METH_FASTCALL, test_vararg_and_posonly__doc__},
4208-
4209- static PyObject *
4210- test_vararg_and_posonly_impl (PyObject * module , PyObject * a , Py_ssize_t nargs ,
4211- PyObject * const * args );
4212-
4213- static PyObject *
4214- test_vararg_and_posonly (PyObject * module , PyObject * const * args , Py_ssize_t nargs )
4215- {
4216- PyObject * return_value = NULL ;
4217- Py_ssize_t nvararg = nargs - 1 ;
4218- PyObject * a ;
4219- PyObject * const * __clinic_args = NULL ;
4220-
4221- if (!_PyArg_CheckPositional ("test_vararg_and_posonly" , nargs , 1 , PY_SSIZE_T_MAX )) {
4222- goto exit ;
4223- }
4224- a = args [0 ];
4225- __clinic_args = _PyTuple_FromArray (args + 1 , nargs - 1 );
4226- if (__clinic_args == NULL ) {
4227- goto exit ;
4228- }
4229- return_value = test_vararg_and_posonly_impl (module , a , nvararg , __clinic_args );
4230-
4231- exit :
4232- /* Cleanup for args */
4233- Py_XDECREF (__clinic_args );
4234-
4235- return return_value ;
4236- }
4237-
4238-
42394201/*[clinic input]
42404202test_vararg
42414203
@@ -5045,39 +5007,6 @@ static int
50455007Test___init___impl (TestObj * self , PyObject * args )
50465008/*[clinic end generated code: output=f172425cec373cd6 input=4b8388c4e6baab6f]*/
50475009
5048- PyDoc_STRVAR (Test___init____doc__ ,
5049- "Test (* args )\n "
5050- "-- \n "
5051- "\n "
5052- "Varargs init method. For example, nargs is translated to PyTuple_GET_SIZE." );
5053-
5054- static int
5055- Test___init___impl (TestObj * self , Py_ssize_t nargs , PyObject * const * args );
5056-
5057- static int
5058- Test___init__ (PyObject * self , PyObject * args , PyObject * kwargs )
5059- {
5060- int return_value = -1 ;
5061- PyTypeObject * base_tp = TestType ;
5062- PyObject * const * __clinic_args = NULL ;
5063-
5064- if ((Py_IS_TYPE (self , base_tp ) ||
5065- Py_TYPE (self )-> tp_new == base_tp -> tp_new ) &&
5066- !_PyArg_NoKeywords ("Test" , kwargs )) {
5067- goto exit ;
5068- }
5069- __clinic_args = Py_NewRef (args );
5070- return_value = Test___init___impl ((TestObj * )self , nvararg , __clinic_args );
5071-
5072- exit :
5073- /* Cleanup for args */
5074- Py_XDECREF (__clinic_args );
5075-
5076- return return_value ;
5077- }
5078-
5079-
5080-
50815010/*[clinic input]
50825011@classmethod
50835012Test.__new__
@@ -5120,37 +5049,6 @@ static PyObject *
51205049Test_impl (PyTypeObject * type , PyObject * args )
51215050/*[clinic end generated code: output=ee1e8892a67abd4a input=a8259521129cad20]*/
51225051
5123- PyDoc_STRVAR (Test__doc__ ,
5124- "Test (* args )\n "
5125- "-- \n "
5126- "\n "
5127- "Varargs new method. For example, nargs is translated to PyTuple_GET_SIZE." );
5128-
5129- static PyObject *
5130- Test_impl (PyTypeObject * type , Py_ssize_t nargs , PyObject * const * args );
5131-
5132- static PyObject *
5133- Test (PyTypeObject * type , PyObject * args , PyObject * kwargs )
5134- {
5135- PyObject * return_value = NULL ;
5136- PyTypeObject * base_tp = TestType ;
5137- PyObject * const * __clinic_args = NULL ;
5138-
5139- if ((type == base_tp || type -> tp_init == base_tp -> tp_init ) &&
5140- !_PyArg_NoKeywords ("Test" , kwargs )) {
5141- goto exit ;
5142- }
5143- __clinic_args = Py_NewRef (args );
5144- return_value = Test_impl (type , nvararg , __clinic_args );
5145-
5146- exit :
5147- /* Cleanup for args */
5148- Py_XDECREF (__clinic_args );
5149-
5150- return return_value ;
5151- }
5152-
5153-
51545052
51555053/*[clinic input]
51565054Test.__init__
@@ -6018,37 +5916,6 @@ static PyObject *
60185916test_critical_section_object_impl (PyObject * module , PyObject * a )
60195917/*[clinic end generated code: output=ec06df92232b0fb5 input=6f67f91b523c875f]*/
60205918
6021- PyDoc_STRVAR (test_critical_section_object__doc__ ,
6022- "test_critical_section_object($module, a, /)\n"
6023- "--\n"
6024- "\n"
6025- "test_critical_section_object" );
6026-
6027- #define TEST_CRITICAL_SECTION_OBJECT_METHODDEF \
6028- {"test_critical_section_object", (PyCFunction)test_critical_section_object, METH_O, test_critical_section_object__doc__},
6029-
6030- static PyObject *
6031- test_critical_section_object_impl (PyObject * module , PyObject * a );
6032-
6033- static PyObject *
6034- test_critical_section_object (PyObject * module , PyObject * arg )
6035- {
6036- PyObject * return_value = NULL ;
6037- PyObject * a ;
6038-
6039- if (!PyUnicode_Check (arg )) {
6040- _PyArg_BadArgument ("test_critical_section_object" , "argument" , "str" , arg );
6041- goto exit ;
6042- }
6043- a = arg ;
6044- Py_BEGIN_CRITICAL_SECTION (a );
6045- return_value = test_critical_section_object_impl (module , a );
6046- Py_END_CRITICAL_SECTION ();
6047-
6048- exit :
6049- return return_value ;
6050- }
6051-
60525919/*[clinic input]
60535920@critical_section a b
60545921test_critical_section_object2
@@ -6103,44 +5970,3 @@ static PyObject *
61035970test_critical_section_object2_impl (PyObject * module , PyObject * a ,
61045971 PyObject * b )
61055972/*[clinic end generated code: output=d73a1657c18df17a input=638824e41419a466]*/
6106-
6107- PyDoc_STRVAR (test_critical_section_object2__doc__ ,
6108- "test_critical_section_object2($module, a, b, /)\n"
6109- "--\n"
6110- "\n"
6111- "test_critical_section_object2" );
6112-
6113- #define TEST_CRITICAL_SECTION_OBJECT2_METHODDEF \
6114- {"test_critical_section_object2", _PyCFunction_CAST(test_critical_section_object2), METH_FASTCALL, test_critical_section_object2__doc__},
6115-
6116- static PyObject *
6117- test_critical_section_object2_impl (PyObject * module , PyObject * a ,
6118- PyObject * b );
6119-
6120- static PyObject *
6121- test_critical_section_object2 (PyObject * module , PyObject * const * args , Py_ssize_t nargs )
6122- {
6123- PyObject * return_value = NULL ;
6124- PyObject * a ;
6125- PyObject * b ;
6126-
6127- if (!_PyArg_CheckPositional ("test_critical_section_object2" , nargs , 2 , 2 )) {
6128- goto exit ;
6129- }
6130- if (!PyUnicode_Check (args [0 ])) {
6131- _PyArg_BadArgument ("test_critical_section_object2" , "argument 1" , "str" , args [0 ]);
6132- goto exit ;
6133- }
6134- a = args [0 ];
6135- if (!PyUnicode_Check (args [1 ])) {
6136- _PyArg_BadArgument ("test_critical_section_object2" , "argument 2" , "str" , args [1 ]);
6137- goto exit ;
6138- }
6139- b = args [1 ];
6140- Py_BEGIN_CRITICAL_SECTION2 (a , b );
6141- return_value = test_critical_section_object2_impl (module , a , b );
6142- Py_END_CRITICAL_SECTION2 ();
6143-
6144- exit :
6145- return return_value ;
6146- }
0 commit comments