@@ -1609,7 +1609,6 @@ static PyObject *
16091609methodcaller_vectorcall (
16101610 methodcallerobject * mc , PyObject * const * args , size_t nargsf , PyObject * kwnames )
16111611{
1612- //printf("methodcaller_vectorcall\n");
16131612 if (!_PyArg_CheckPositional ("methodcaller" , PyVectorcall_NARGS (nargsf ), 1 , 1 )
16141613 || !_PyArg_NoKwnames ("methodcaller" , kwnames )) {
16151614 return NULL ;
@@ -1619,21 +1618,16 @@ methodcaller_vectorcall(
16191618 Py_ssize_t number_of_arguments = PyTuple_GET_SIZE (mc -> args ) +
16201619 (mc -> vectorcall_kwnames ? PyTuple_GET_SIZE (mc -> vectorcall_kwnames ):0 );
16211620
1622- //printf("methodcaller_vectorcall: number_of_arguments %ld\n", number_of_arguments);
1623-
16241621 PyObject * tmp_args [_METHODCALLER_MAX_ARGS ];
16251622 tmp_args [0 ] = args [0 ];
1626- tmp_args [1 ] = Py_None ;
1627- if (number_of_arguments ) {
1628- assert (1 + number_of_arguments <= _METHODCALLER_MAX_ARGS );
1629- memcpy (tmp_args + 1 , mc -> vectorcall_args , sizeof (PyObject * ) * number_of_arguments );
1630- }
1623+ assert (1 + number_of_arguments <= _METHODCALLER_MAX_ARGS );
1624+ memcpy (tmp_args + 1 , mc -> vectorcall_args , sizeof (PyObject * ) * number_of_arguments );
1625+
16311626 PyObject * result = PyObject_VectorcallMethod (
16321627 mc -> name , tmp_args ,
16331628 (1 + PyTuple_GET_SIZE (mc -> args )) | PY_VECTORCALL_ARGUMENTS_OFFSET ,
16341629 mc -> vectorcall_kwnames );
16351630
1636- //printf("methodcaller_vectorcall done\n");
16371631 return result ;
16381632}
16391633
@@ -1643,8 +1637,6 @@ static int _methodcaller_initialize_vectorcall(methodcallerobject* mc)
16431637 PyObject * kwds = mc -> kwds ;
16441638
16451639 Py_ssize_t nargs = PyTuple_GET_SIZE (args );
1646- // printf("_methodcaller_initialize_vectorcall: nargs %ld, vectorcall_args size \n", nargs, nargs + (kwds ? PyDict_Size(kwds) : 0));
1647-
16481640 mc -> vectorcall_args = PyMem_Calloc (
16491641 nargs + (kwds ? PyDict_Size (kwds ) : 0 ),
16501642 sizeof (PyObject * ));
@@ -1712,7 +1704,6 @@ methodcaller_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
17121704 _PyUnicode_InternMortal (interp , & name );
17131705 mc -> name = name ;
17141706
1715- //printf("methodcaller_new: %ld \n", PyTuple_GET_SIZE(args));
17161707 mc -> args = PyTuple_GetSlice (args , 1 , PyTuple_GET_SIZE (args ));
17171708 if (mc -> args == NULL ) {
17181709 Py_DECREF (mc );
0 commit comments