@@ -4198,44 +4198,6 @@ static PyObject *
4198
4198
test_vararg_and_posonly_impl (PyObject * module , PyObject * a , PyObject * args )
4199
4199
/*[clinic end generated code: output=0c11c475e240869e input=2c49a482f68545c0]*/
4200
4200
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
-
4239
4201
/*[clinic input]
4240
4202
test_vararg
4241
4203
@@ -5045,39 +5007,6 @@ static int
5045
5007
Test___init___impl (TestObj * self , PyObject * args )
5046
5008
/*[clinic end generated code: output=f172425cec373cd6 input=4b8388c4e6baab6f]*/
5047
5009
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
-
5081
5010
/*[clinic input]
5082
5011
@classmethod
5083
5012
Test.__new__
@@ -5120,37 +5049,6 @@ static PyObject *
5120
5049
Test_impl (PyTypeObject * type , PyObject * args )
5121
5050
/*[clinic end generated code: output=ee1e8892a67abd4a input=a8259521129cad20]*/
5122
5051
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
-
5154
5052
5155
5053
/*[clinic input]
5156
5054
Test.__init__
@@ -6018,37 +5916,6 @@ static PyObject *
6018
5916
test_critical_section_object_impl (PyObject * module , PyObject * a )
6019
5917
/*[clinic end generated code: output=ec06df92232b0fb5 input=6f67f91b523c875f]*/
6020
5918
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
-
6052
5919
/*[clinic input]
6053
5920
@critical_section a b
6054
5921
test_critical_section_object2
@@ -6103,44 +5970,3 @@ static PyObject *
6103
5970
test_critical_section_object2_impl (PyObject * module , PyObject * a ,
6104
5971
PyObject * b )
6105
5972
/*[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