diff Doc/lib/libstdtypes.tex @ 18391:aadd99830531 legacy-trunk

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().
author Guido van Rossum <guido@python.org>
date Thu, 05 Jul 2001 13:27:48 +0000
parents bc05a95242a3
children 1d0d3e6a3201
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex	Thu Jul 05 07:06:26 2001 +0000
+++ b/Doc/lib/libstdtypes.tex	Thu Jul 05 13:27:48 2001 +0000
@@ -775,12 +775,8 @@
 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}}