[Python-checkins] CVS: python/dist/src/Objects listobject.c,2.64,2.65

Guido van Rossum guido@cnri.reston.va.us
Thu, 24 Feb 2000 16:48:32 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Objects
In directory eric:/projects/python/develop/guido/src/Objects

Modified Files:
	listobject.c 
Log Message:
OKOK, Greg's right, I should've used the :name option in the argument
format strings.


Index: listobject.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Objects/listobject.c,v
retrieving revision 2.64
retrieving revision 2.65
diff -C2 -r2.64 -r2.65
*** listobject.c	2000/02/24 15:23:03	2.64
--- listobject.c	2000/02/24 21:48:29	2.65
***************
*** 558,562 ****
  	int i;
  	PyObject *v;
! 	if (!PyArg_ParseTuple(args, "iO", &i, &v))
  		return NULL;
  	return ins(self, i, v);
--- 558,562 ----
  	int i;
  	PyObject *v;
! 	if (!PyArg_ParseTuple(args, "iO:insert", &i, &v))
  		return NULL;
  	return ins(self, i, v);
***************
*** 569,573 ****
  {
  	PyObject *v;
! 	if (!PyArg_ParseTuple(args, "O", &v))
  		return NULL;
  	return ins(self, (int) self->ob_size, v);
--- 569,573 ----
  {
  	PyObject *v;
! 	if (!PyArg_ParseTuple(args, "O:append", &v))
  		return NULL;
  	return ins(self, (int) self->ob_size, v);
***************
*** 585,589 ****
  	register int i;
  
! 	if (!PyArg_ParseTuple(args, "O", &b))
  		return NULL;
  
--- 585,589 ----
  	register int i;
  
! 	if (!PyArg_ParseTuple(args, "O:extend", &b))
  		return NULL;
  
***************
*** 652,656 ****
  	int i = -1;
  	PyObject *v;
! 	if (!PyArg_ParseTuple(args, "|i", &i))
  		return NULL;
  	if (self->ob_size == 0) {
--- 652,656 ----
  	int i = -1;
  	PyObject *v;
! 	if (!PyArg_ParseTuple(args, "|i:pop", &i))
  		return NULL;
  	if (self->ob_size == 0) {
***************
*** 1225,1229 ****
  
  	if (args != NULL) {
! 		if (!PyArg_ParseTuple(args, "|O", &compare))
  			return NULL;
  	}
--- 1225,1229 ----
  
  	if (args != NULL) {
! 		if (!PyArg_ParseTuple(args, "|O:sort", &compare))
  			return NULL;
  	}
***************
*** 1262,1266 ****
  	register PyObject *tmp;
  	
! 	if (!PyArg_ParseTuple(args, ""))
  		return NULL;
  
--- 1262,1266 ----
  	register PyObject *tmp;
  	
! 	if (!PyArg_ParseTuple(args, ":reverse"))
  		return NULL;
  
***************
*** 1327,1331 ****
  	PyObject *v;
  
! 	if (!PyArg_ParseTuple(args, "O", &v))
  		return NULL;
  	for (i = 0; i < self->ob_size; i++) {
--- 1327,1331 ----
  	PyObject *v;
  
! 	if (!PyArg_ParseTuple(args, "O:index", &v))
  		return NULL;
  	for (i = 0; i < self->ob_size; i++) {
***************
*** 1348,1352 ****
  	PyObject *v;
  
! 	if (!PyArg_ParseTuple(args, "O", &v))
  		return NULL;
  	for (i = 0; i < self->ob_size; i++) {
--- 1348,1352 ----
  	PyObject *v;
  
! 	if (!PyArg_ParseTuple(args, "O:count", &v))
  		return NULL;
  	for (i = 0; i < self->ob_size; i++) {
***************
*** 1367,1371 ****
  	PyObject *v;
  
! 	if (!PyArg_ParseTuple(args, "O", &v))
  		return NULL;
  	for (i = 0; i < self->ob_size; i++) {
--- 1367,1371 ----
  	PyObject *v;
  
! 	if (!PyArg_ParseTuple(args, "O:remove", &v))
  		return NULL;
  	for (i = 0; i < self->ob_size; i++) {