]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#3171: document that *slice are removed in 3k.
authorGeorg Brandl <georg@python.org>
Fri, 5 Dec 2008 15:42:03 +0000 (15:42 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 5 Dec 2008 15:42:03 +0000 (15:42 +0000)
Doc/library/operator.rst

index 49218983bcbad15a102e25d46d20fcb1961943c1..2ab54db02d87586b0895482be519a03ec754720b 100644 (file)
@@ -240,6 +240,10 @@ Operations which work with sequences include:
 
    Delete the slice of *a* from index *b* to index *c-1*.
 
+   .. deprecated:: 2.6
+      This function is removed in Python 3.x.  Use :func:`delitem` with a slice
+      index.
+
 
 .. function:: getitem(a, b)
               __getitem__(a, b)
@@ -252,6 +256,10 @@ Operations which work with sequences include:
 
    Return the slice of *a* from index *b* to index *c-1*.
 
+   .. deprecated:: 2.6
+      This function is removed in Python 3.x.  Use :func:`getitem` with a slice
+      index.
+
 
 .. function:: indexOf(a, b)
 
@@ -283,6 +291,11 @@ Operations which work with sequences include:
 
    Set the slice of *a* from index *b* to index *c-1* to the sequence *v*.
 
+   .. deprecated:: 2.6
+      This function is removed in Python 3.x.  Use :func:`setitem` with a slice
+      index.
+
+
 Many operations have an "in-place" version.  The following functions provide a
 more primitive access to in-place operators than the usual syntax does; for
 example, the :term:`statement` ``x += y`` is equivalent to