@@ -91,21 +91,25 @@ PyDoc_STRVAR(_io__Buffered_peek__doc__,
9191"\n" );
9292
9393#define _IO__BUFFERED_PEEK_METHODDEF \
94- {"peek", (PyCFunction)_io__Buffered_peek, METH_VARARGS , _io__Buffered_peek__doc__},
94+ {"peek", (PyCFunction)_io__Buffered_peek, METH_FASTCALL , _io__Buffered_peek__doc__},
9595
9696static PyObject *
9797_io__Buffered_peek_impl (buffered * self , Py_ssize_t size );
9898
9999static PyObject *
100- _io__Buffered_peek (buffered * self , PyObject * args )
100+ _io__Buffered_peek (buffered * self , PyObject * * args , Py_ssize_t nargs , PyObject * kwnames )
101101{
102102 PyObject * return_value = NULL ;
103103 Py_ssize_t size = 0 ;
104104
105- if (!PyArg_ParseTuple (args , "|n:peek" ,
105+ if (!_PyArg_ParseStack (args , nargs , "|n:peek" ,
106106 & size )) {
107107 goto exit ;
108108 }
109+
110+ if (!_PyArg_NoStackKeywords ("peek" , kwnames )) {
111+ goto exit ;
112+ }
109113 return_value = _io__Buffered_peek_impl (self , size );
110114
111115exit :
@@ -118,21 +122,25 @@ PyDoc_STRVAR(_io__Buffered_read__doc__,
118122"\n" );
119123
120124#define _IO__BUFFERED_READ_METHODDEF \
121- {"read", (PyCFunction)_io__Buffered_read, METH_VARARGS , _io__Buffered_read__doc__},
125+ {"read", (PyCFunction)_io__Buffered_read, METH_FASTCALL , _io__Buffered_read__doc__},
122126
123127static PyObject *
124128_io__Buffered_read_impl (buffered * self , Py_ssize_t n );
125129
126130static PyObject *
127- _io__Buffered_read (buffered * self , PyObject * args )
131+ _io__Buffered_read (buffered * self , PyObject * * args , Py_ssize_t nargs , PyObject * kwnames )
128132{
129133 PyObject * return_value = NULL ;
130134 Py_ssize_t n = -1 ;
131135
132- if (!PyArg_ParseTuple (args , "|O&:read" ,
136+ if (!_PyArg_ParseStack (args , nargs , "|O&:read" ,
133137 _PyIO_ConvertSsize_t , & n )) {
134138 goto exit ;
135139 }
140+
141+ if (!_PyArg_NoStackKeywords ("read" , kwnames )) {
142+ goto exit ;
143+ }
136144 return_value = _io__Buffered_read_impl (self , n );
137145
138146exit :
@@ -145,21 +153,25 @@ PyDoc_STRVAR(_io__Buffered_read1__doc__,
145153"\n" );
146154
147155#define _IO__BUFFERED_READ1_METHODDEF \
148- {"read1", (PyCFunction)_io__Buffered_read1, METH_VARARGS , _io__Buffered_read1__doc__},
156+ {"read1", (PyCFunction)_io__Buffered_read1, METH_FASTCALL , _io__Buffered_read1__doc__},
149157
150158static PyObject *
151159_io__Buffered_read1_impl (buffered * self , Py_ssize_t n );
152160
153161static PyObject *
154- _io__Buffered_read1 (buffered * self , PyObject * args )
162+ _io__Buffered_read1 (buffered * self , PyObject * * args , Py_ssize_t nargs , PyObject * kwnames )
155163{
156164 PyObject * return_value = NULL ;
157165 Py_ssize_t n = -1 ;
158166
159- if (!PyArg_ParseTuple (args , "|n:read1" ,
167+ if (!_PyArg_ParseStack (args , nargs , "|n:read1" ,
160168 & n )) {
161169 goto exit ;
162170 }
171+
172+ if (!_PyArg_NoStackKeywords ("read1" , kwnames )) {
173+ goto exit ;
174+ }
163175 return_value = _io__Buffered_read1_impl (self , n );
164176
165177exit :
@@ -234,21 +246,25 @@ PyDoc_STRVAR(_io__Buffered_readline__doc__,
234246"\n" );
235247
236248#define _IO__BUFFERED_READLINE_METHODDEF \
237- {"readline", (PyCFunction)_io__Buffered_readline, METH_VARARGS , _io__Buffered_readline__doc__},
249+ {"readline", (PyCFunction)_io__Buffered_readline, METH_FASTCALL , _io__Buffered_readline__doc__},
238250
239251static PyObject *
240252_io__Buffered_readline_impl (buffered * self , Py_ssize_t size );
241253
242254static PyObject *
243- _io__Buffered_readline (buffered * self , PyObject * args )
255+ _io__Buffered_readline (buffered * self , PyObject * * args , Py_ssize_t nargs , PyObject * kwnames )
244256{
245257 PyObject * return_value = NULL ;
246258 Py_ssize_t size = -1 ;
247259
248- if (!PyArg_ParseTuple (args , "|O&:readline" ,
260+ if (!_PyArg_ParseStack (args , nargs , "|O&:readline" ,
249261 _PyIO_ConvertSsize_t , & size )) {
250262 goto exit ;
251263 }
264+
265+ if (!_PyArg_NoStackKeywords ("readline" , kwnames )) {
266+ goto exit ;
267+ }
252268 return_value = _io__Buffered_readline_impl (self , size );
253269
254270exit :
@@ -261,22 +277,26 @@ PyDoc_STRVAR(_io__Buffered_seek__doc__,
261277"\n" );
262278
263279#define _IO__BUFFERED_SEEK_METHODDEF \
264- {"seek", (PyCFunction)_io__Buffered_seek, METH_VARARGS , _io__Buffered_seek__doc__},
280+ {"seek", (PyCFunction)_io__Buffered_seek, METH_FASTCALL , _io__Buffered_seek__doc__},
265281
266282static PyObject *
267283_io__Buffered_seek_impl (buffered * self , PyObject * targetobj , int whence );
268284
269285static PyObject *
270- _io__Buffered_seek (buffered * self , PyObject * args )
286+ _io__Buffered_seek (buffered * self , PyObject * * args , Py_ssize_t nargs , PyObject * kwnames )
271287{
272288 PyObject * return_value = NULL ;
273289 PyObject * targetobj ;
274290 int whence = 0 ;
275291
276- if (!PyArg_ParseTuple (args , "O|i:seek" ,
292+ if (!_PyArg_ParseStack (args , nargs , "O|i:seek" ,
277293 & targetobj , & whence )) {
278294 goto exit ;
279295 }
296+
297+ if (!_PyArg_NoStackKeywords ("seek" , kwnames )) {
298+ goto exit ;
299+ }
280300 return_value = _io__Buffered_seek_impl (self , targetobj , whence );
281301
282302exit :
@@ -476,4 +496,4 @@ _io_BufferedRandom___init__(PyObject *self, PyObject *args, PyObject *kwargs)
476496exit :
477497 return return_value ;
478498}
479- /*[clinic end generated code: output=490c97bfcfd92c51 input=a9049054013a1b77]*/
499+ /*[clinic end generated code: output=e6e584216a10d67e input=a9049054013a1b77]*/
0 commit comments