[Python-checkins] CVS: python/dist/src/Objects typeobject.c,2.16.8.67,2.16.8.68
Guido van Rossum
gvanrossum@users.sourceforge.net
Thu, 19 Jul 2001 05:43:22 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv10778
Modified Files:
Tag: descr-branch
typeobject.c
Log Message:
Fix SF bug #442705: Overriding __setslice__. A simple cut-and-paste
error in slot_sq_ass_slice().
Index: typeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v
retrieving revision 2.16.8.67
retrieving revision 2.16.8.68
diff -C2 -r2.16.8.67 -r2.16.8.68
*** typeobject.c 2001/07/13 21:48:09 2.16.8.67
--- typeobject.c 2001/07/19 12:43:19 2.16.8.68
***************
*** 1973,1977 ****
slot_sq_ass_slice(PyObject *self, int i, int j, PyObject *value)
{
! PyObject *res = PyObject_CallMethod(self, "__setitem__",
"iiO", i, j, value);
if (res == NULL)
--- 1973,1977 ----
slot_sq_ass_slice(PyObject *self, int i, int j, PyObject *value)
{
! PyObject *res = PyObject_CallMethod(self, "__setslice__",
"iiO", i, j, value);
if (res == NULL)