From: Brett Cannon Date: Tue, 20 May 2003 02:42:04 +0000 (+0000) Subject: Change docstrings for __(get|set|del)slice__ to note that negative indices are not... X-Git-Tag: v2.2.3c1~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a63d35f4869dec3b1f129fdcf58e284e6a50df5d;p=thirdparty%2FPython%2Fcpython.git Change docstrings for __(get|set|del)slice__ to note that negative indices are not supported. --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index e4b4c5c2d748..0597921a105e 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -3702,16 +3702,22 @@ static slotdef slotdefs[] = { SQSLOT("__getitem__", sq_item, slot_sq_item, wrap_sq_item, "x.__getitem__(y) <==> x[y]"), SQSLOT("__getslice__", sq_slice, slot_sq_slice, wrap_intintargfunc, - "x.__getslice__(i, j) <==> x[i:j]"), + "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"), 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, - "x.__setslice__(i, j, y) <==> x[i:j]=y"), + "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]"), + "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"), SQSLOT("__iadd__", sq_inplace_concat, slot_sq_inplace_concat,