diff Objects/typeobject.c @ 29173:421ffd7c57af legacy-trunk

Fixing the previous patch to have the changes be to the proper docstrings.
author Brett Cannon <bcannon@gmail.com>
date Tue, 20 May 2003 02:40:12 +0000
parents 9ae17b3779bb
children 754fd34ad978
line wrap: on
line diff
--- a/Objects/typeobject.c	Tue May 20 02:30:04 2003 +0000
+++ b/Objects/typeobject.c	Tue May 20 02:40:12 2003 +0000
@@ -4785,18 +4785,18 @@
                \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\
+	       "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\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("__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,
-	       "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"),
 	SQSLOT("__iadd__", sq_inplace_concat, slot_sq_inplace_concat,