[Python-checkins] CVS: python/dist/src/Objects listobject.c,2.70,2.71
Fred L. Drake
python-dev@python.org
Thu, 1 Jun 2000 07:31:06 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory slayer.i.sourceforge.net:/tmp/cvs-serv30101
Modified Files:
listobject.c
Log Message:
Improve TypeError exception message for list catenation.
Index: listobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/listobject.c,v
retrieving revision 2.70
retrieving revision 2.71
diff -C2 -r2.70 -r2.71
*** listobject.c 2000年06月01日 03:12:13 2.70
--- listobject.c 2000年06月01日 14:31:03 2.71
***************
*** 390,395 ****
if (!PyList_Check(bb)) {
PyErr_Format(PyExc_TypeError,
! "can only append list (not \"%.200s\") to list",
! bb->ob_type->tp_name);
return NULL;
}
--- 390,395 ----
if (!PyList_Check(bb)) {
PyErr_Format(PyExc_TypeError,
! "can only concatenate list (not \"%.200s\") to list",
! bb->ob_type->tp_name);
return NULL;
}