[Python-checkins] python/dist/src/Objects typeobject.c,2.126.4.34,2.126.4.35
bcannon@users.sourceforge.net
bcannon@users.sourceforge.net
Mon, 19 May 2003 19:42:06 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv9505/Objects
Modified Files:
Tag: release22-maint
typeobject.c
Log Message:
Change docstrings for __(get|set|del)slice__ to note that negative indices are not supported.
Index: typeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v
retrieving revision 2.126.4.34
retrieving revision 2.126.4.35
diff -C2 -d -r2.126.4.34 -r2.126.4.35
*** typeobject.c 25 Apr 2003 05:40:32 -0000 2.126.4.34
--- typeobject.c 20 May 2003 02:42:04 -0000 2.126.4.35
***************
*** 3703,3707 ****
"x.__getitem__(y) <==> x[y]"),
SQSLOT("__getslice__", sq_slice, slot_sq_slice, wrap_intintargfunc,
! "x.__getslice__(i, j) <==> x[i:j]"),
SQSLOT("__setitem__", sq_ass_item, slot_sq_ass_item, wrap_sq_setitem,
"x.__setitem__(i, y) <==> x[i]=y"),
--- 3703,3709 ----
"x.__getitem__(y) <==> x[y]"),
SQSLOT("__getslice__", sq_slice, slot_sq_slice, wrap_intintargfunc,
! "x.__getslice__(i, j) <==> x[i:j]\n\
! \n\
! Use of negative indices is not supported."),
SQSLOT("__setitem__", sq_ass_item, slot_sq_ass_item, wrap_sq_setitem,
"x.__setitem__(i, y) <==> x[i]=y"),
***************
*** 3710,3716 ****
SQSLOT("__setslice__", sq_ass_slice, slot_sq_ass_slice,
wrap_intintobjargproc,
! "x.__setslice__(i, j, y) <==> x[i:j]=y"),
SQSLOT("__delslice__", sq_ass_slice, slot_sq_ass_slice, wrap_delslice,
! "x.__delslice__(i, j) <==> del x[i:j]"),
SQSLOT("__contains__", sq_contains, slot_sq_contains, wrap_objobjproc,
"x.__contains__(y) <==> y in x"),
--- 3712,3722 ----
SQSLOT("__setslice__", sq_ass_slice, slot_sq_ass_slice,
wrap_intintobjargproc,
! "x.__setslice__(i, j, y) <==> x[i:j]=y\n\
! \n\
! Use of negative indices is not supported."),
SQSLOT("__delslice__", sq_ass_slice, slot_sq_ass_slice, wrap_delslice,
! "x.__delslice__(i, j) <==> del x[i:j]\n\
! \n\
! Use of negative indices is not supported."),
SQSLOT("__contains__", sq_contains, slot_sq_contains, wrap_objobjproc,
"x.__contains__(y) <==> y in x"),