[Python-checkins] python/dist/src/Objects typeobject.c,2.230,2.231

bcannon@users.sourceforge.net bcannon@users.sourceforge.net
Mon, 19 May 2003 19:30:07 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv2874/Objects

Modified Files:
	typeobject.c 
Log Message:
Fix docstrings for __(get|set|del)slice__ to mention that negative indices are not supported.

Index: typeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v
retrieving revision 2.230
retrieving revision 2.231
diff -C2 -d -r2.230 -r2.231
*** typeobject.c	10 May 2003 07:36:55 -0000	2.230
--- typeobject.c	20 May 2003 02:30:04 -0000	2.231
***************
*** 4782,4790 ****
  	       "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"),
  	SQSLOT("__delitem__", sq_ass_item, slot_sq_ass_item, wrap_sq_delitem,
! 	       "x.__delitem__(y) <==> del x[y]"),
  	SQSLOT("__setslice__", sq_ass_slice, slot_sq_ass_slice,
  	       wrap_intintobjargproc,
--- 4782,4796 ----
  	       "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\n\
!                \n\
!                Use of negative indices is not supported."),
  	SQSLOT("__delitem__", sq_ass_item, slot_sq_ass_item, wrap_sq_delitem,
! 	       "x.__delitem__(y) <==> del x[y]i\n\
!                \n\
!                Use of negative indices is not supported."),
  	SQSLOT("__setslice__", sq_ass_slice, slot_sq_ass_slice,
  	       wrap_intintobjargproc,