diff options
author | Georg Brandl <georg@python.org> | 2008-12-05 15:42:03 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-12-05 15:42:03 (GMT) |
commit | 95a840b044873a1359bd92300cf2058328822b9e (patch) | |
tree | c84dcbdf13f0473c7fb8c5644c13edc7a29e02c3 | |
parent | 905e0f65ba0f740783ae1542b3dfdfdfc52f8ecf (diff) | |
download | cpython-95a840b044873a1359bd92300cf2058328822b9e.zip cpython-95a840b044873a1359bd92300cf2058328822b9e.tar.gz cpython-95a840b044873a1359bd92300cf2058328822b9e.tar.bz2 |
#3171: document that *slice are removed in 3k.
-rw-r--r-- | Doc/library/operator.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/library/operator.rst b/Doc/library/operator.rst index 4921898..2ab54db 100644 --- a/Doc/library/operator.rst +++ b/Doc/library/operator.rst @@ -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 |