]> granicus.if.org Git - python/commitdiff
Fixing the previous patch to have the changes be to the proper docstrings.
authorBrett Cannon <bcannon@gmail.com>
Tue, 20 May 2003 02:40:12 +0000 (02:40 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 20 May 2003 02:40:12 +0000 (02:40 +0000)
Objects/typeobject.c

index c9fcaa70ce5c353484c16f2085526c85bb86b655..9a23227dbbf73ed79152477bf2fa705e8e90fc23 100644 (file)
@@ -4785,18 +4785,18 @@ static slotdef slotdefs[] = {
                \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."),
+              "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]i\n\
-               \n\
-               Use of negative indices is not supported."),
+              "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,