@@ -557,7 +557,7 @@ listinsert(self, args)
557557{
558558 int i ;
559559 PyObject * v ;
560- if (!PyArg_ParseTuple (args , "iO" , & i , & v ))
560+ if (!PyArg_ParseTuple (args , "iO:insert " , & i , & v ))
561561 return NULL ;
562562 return ins (self , i , v );
563563}
@@ -568,7 +568,7 @@ listappend(self, args)
568568 PyObject * args ;
569569{
570570 PyObject * v ;
571- if (!PyArg_ParseTuple (args , "O" , & v ))
571+ if (!PyArg_ParseTuple (args , "O:append " , & v ))
572572 return NULL ;
573573 return ins (self , (int ) self -> ob_size , v );
574574}
@@ -584,7 +584,7 @@ listextend(self, args)
584584 int blen ;
585585 register int i ;
586586
587- if (!PyArg_ParseTuple (args , "O" , & b ))
587+ if (!PyArg_ParseTuple (args , "O:extend " , & b ))
588588 return NULL ;
589589
590590 if (!PyList_Check (b )) {
@@ -651,7 +651,7 @@ listpop(self, args)
651651{
652652 int i = -1 ;
653653 PyObject * v ;
654- if (!PyArg_ParseTuple (args , "|i" , & i ))
654+ if (!PyArg_ParseTuple (args , "|i:pop " , & i ))
655655 return NULL ;
656656 if (self -> ob_size == 0 ) {
657657 /* Special-case most common failure cause */
@@ -1224,7 +1224,7 @@ listsort(self, args)
12241224 PyObject * compare = NULL ;
12251225
12261226 if (args != NULL ) {
1227- if (!PyArg_ParseTuple (args , "|O" , & compare ))
1227+ if (!PyArg_ParseTuple (args , "|O:sort " , & compare ))
12281228 return NULL ;
12291229 }
12301230 self -> ob_type = & immutable_list_type ;
@@ -1261,7 +1261,7 @@ listreverse(self, args)
12611261 register PyObject * * p , * * q ;
12621262 register PyObject * tmp ;
12631263
1264- if (!PyArg_ParseTuple (args , "" ))
1264+ if (!PyArg_ParseTuple (args , ":reverse " ))
12651265 return NULL ;
12661266
12671267 if (self -> ob_size > 1 ) {
@@ -1326,7 +1326,7 @@ listindex(self, args)
13261326 int i ;
13271327 PyObject * v ;
13281328
1329- if (!PyArg_ParseTuple (args , "O" , & v ))
1329+ if (!PyArg_ParseTuple (args , "O:index " , & v ))
13301330 return NULL ;
13311331 for (i = 0 ; i < self -> ob_size ; i ++ ) {
13321332 if (PyObject_Compare (self -> ob_item [i ], v ) == 0 )
@@ -1347,7 +1347,7 @@ listcount(self, args)
13471347 int i ;
13481348 PyObject * v ;
13491349
1350- if (!PyArg_ParseTuple (args , "O" , & v ))
1350+ if (!PyArg_ParseTuple (args , "O:count " , & v ))
13511351 return NULL ;
13521352 for (i = 0 ; i < self -> ob_size ; i ++ ) {
13531353 if (PyObject_Compare (self -> ob_item [i ], v ) == 0 )
@@ -1366,7 +1366,7 @@ listremove(self, args)
13661366 int i ;
13671367 PyObject * v ;
13681368
1369- if (!PyArg_ParseTuple (args , "O" , & v ))
1369+ if (!PyArg_ParseTuple (args , "O:remove " , & v ))
13701370 return NULL ;
13711371 for (i = 0 ; i < self -> ob_size ; i ++ ) {
13721372 if (PyObject_Compare (self -> ob_item [i ], v ) == 0 ) {
0 commit comments