summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-07-05 13:27:48 (GMT)
committerGuido van Rossum <guido@python.org>2001-07-05 13:27:48 (GMT)
commit3f56166b1aff15136960dfc8ad90f571e14be01a (patch)
tree6d39af58334274d80e96f5d59a6e1f3b12f91588 /Doc
parent25ddc6330f1977c4c650f1002586faf4f7b2c639 (diff)
downloadcpython-3f56166b1aff15136960dfc8ad90f571e14be01a.zip
cpython-3f56166b1aff15136960dfc8ad90f571e14be01a.tar.gz
cpython-3f56166b1aff15136960dfc8ad90f571e14be01a.tar.bz2
Rip out the fancy behaviors of xrange that nobody uses: repeat, slice,
contains, tolist(), and the start/stop/step attributes. This includes removing the 4th ('repeat') argument to PyRange_New().
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libstdtypes.tex8
1 files changed, 2 insertions, 6 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex
index f606d78..4f7e27a 100644
--- a/Doc/lib/libstdtypes.tex
+++ b/Doc/lib/libstdtypes.tex
@@ -775,12 +775,8 @@ xrange object will always take the same amount of memory, no matter the
size of the range it represents. There are no consistent performance
advantages.
-XRange objects behave like tuples, and offer a single method:
-
-\begin{methoddesc}[xrange]{tolist}{}
- Return a list object which represents the same values as the xrange
- object.
-\end{methoddesc}
+XRange objects have very little behavior: they only support indexing
+and the \function{len()} function.
\subsubsection{Mutable Sequence Types \label{typesseq-mutable}}