@@ -224,7 +224,7 @@ PyObject_Call(PyObject *callable, PyObject *args, PyObject *kwargs)
224224
225225 if (PyFunction_Check (callable )) {
226226 return _PyFunction_FastCallDict (callable ,
227- & PyTuple_GET_ITEM (args , 0 ),
227+ _PyTuple_ITEMS (args ),
228228 PyTuple_GET_SIZE (args ),
229229 kwargs );
230230 }
@@ -325,7 +325,7 @@ _PyFunction_FastCallDict(PyObject *func, PyObject *const *args, Py_ssize_t nargs
325325 && co -> co_argcount == PyTuple_GET_SIZE (argdefs )) {
326326 /* function called with no arguments, but all parameters have
327327 a default value: use default values as arguments .*/
328- args = & PyTuple_GET_ITEM (argdefs , 0 );
328+ args = _PyTuple_ITEMS (argdefs );
329329 return function_code_fastcall (co , args , PyTuple_GET_SIZE (argdefs ),
330330 globals );
331331 }
@@ -342,7 +342,7 @@ _PyFunction_FastCallDict(PyObject *func, PyObject *const *args, Py_ssize_t nargs
342342 return NULL ;
343343 }
344344
345- k = & PyTuple_GET_ITEM (kwtuple , 0 );
345+ k = _PyTuple_ITEMS (kwtuple );
346346 pos = i = 0 ;
347347 while (PyDict_Next (kwargs , & pos , & k [i ], & k [i + 1 ])) {
348348 /* We must hold strong references because keyword arguments can be
@@ -365,7 +365,7 @@ _PyFunction_FastCallDict(PyObject *func, PyObject *const *args, Py_ssize_t nargs
365365 qualname = ((PyFunctionObject * )func ) -> func_qualname ;
366366
367367 if (argdefs != NULL ) {
368- d = & PyTuple_GET_ITEM (argdefs , 0 );
368+ d = _PyTuple_ITEMS (argdefs );
369369 nd = PyTuple_GET_SIZE (argdefs );
370370 }
371371 else {
@@ -411,7 +411,7 @@ _PyFunction_FastCallKeywords(PyObject *func, PyObject *const *stack,
411411 && co -> co_argcount == PyTuple_GET_SIZE (argdefs )) {
412412 /* function called with no arguments, but all parameters have
413413 a default value: use default values as arguments .*/
414- stack = & PyTuple_GET_ITEM (argdefs , 0 );
414+ stack = _PyTuple_ITEMS (argdefs );
415415 return function_code_fastcall (co , stack , PyTuple_GET_SIZE (argdefs ),
416416 globals );
417417 }
@@ -423,7 +423,7 @@ _PyFunction_FastCallKeywords(PyObject *func, PyObject *const *stack,
423423 qualname = ((PyFunctionObject * )func ) -> func_qualname ;
424424
425425 if (argdefs != NULL ) {
426- d = & PyTuple_GET_ITEM (argdefs , 0 );
426+ d = _PyTuple_ITEMS (argdefs );
427427 nd = PyTuple_GET_SIZE (argdefs );
428428 }
429429 else {
@@ -432,7 +432,7 @@ _PyFunction_FastCallKeywords(PyObject *func, PyObject *const *stack,
432432 }
433433 return _PyEval_EvalCodeWithName ((PyObject * )co , globals , (PyObject * )NULL ,
434434 stack , nargs ,
435- nkwargs ? & PyTuple_GET_ITEM (kwnames , 0 ) : NULL ,
435+ nkwargs ? _PyTuple_ITEMS (kwnames ) : NULL ,
436436 stack + nargs ,
437437 nkwargs , 1 ,
438438 d , (int )nd , kwdefs ,
@@ -785,7 +785,7 @@ PyCFunction_Call(PyObject *func, PyObject *args, PyObject *kwargs)
785785 }
786786 else {
787787 return _PyCFunction_FastCallDict (func ,
788- & PyTuple_GET_ITEM (args , 0 ),
788+ _PyTuple_ITEMS (args ),
789789 PyTuple_GET_SIZE (args ),
790790 kwargs );
791791 }
@@ -898,8 +898,8 @@ _PyObject_Call_Prepend(PyObject *callable,
898898 /* use borrowed references */
899899 stack [0 ] = obj ;
900900 memcpy (& stack [1 ],
901- & PyTuple_GET_ITEM (args , 0 ),
902- argcount * sizeof (PyObject * ));
901+ _PyTuple_ITEMS (args ),
902+ argcount * sizeof (PyObject * ));
903903
904904 result = _PyObject_FastCallDict (callable ,
905905 stack , argcount + 1 ,
@@ -950,7 +950,7 @@ _PyObject_CallFunctionVa(PyObject *callable, const char *format,
950950 func(*(arg1, arg2, arg3)): func(arg1, arg2, arg3) */
951951 PyObject * args = stack [0 ];
952952 result = _PyObject_FastCall (callable ,
953- & PyTuple_GET_ITEM (args , 0 ),
953+ _PyTuple_ITEMS (args ),
954954 PyTuple_GET_SIZE (args ));
955955 }
956956 else {
0 commit comments