changeset 66337:62182abc116a

Clean-up the description of the range object.
author Raymond Hettinger <python@rcn.com>
date Sun, 21 Nov 2010 00:07:55 +0000
parents 459a69025d9c
children 5c06d3d1b9c9
files Doc/library/stdtypes.rst
diffstat 1 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/Doc/library/stdtypes.rst	Sat Nov 20 23:56:22 2010 +0000
+++ b/Doc/library/stdtypes.rst	Sun Nov 21 00:07:55 2010 +0000
@@ -1581,16 +1581,14 @@
 The :class:`range` type is an immutable sequence which is commonly used for
 looping.  The advantage of the :class:`range` type is that an :class:`range`
 object will always take the same amount of memory, no matter the size of the
-range it represents.  There are no consistent performance advantages.
-
-Range objects have relatively little behavior: they support indexing,
-iteration, the :func:`len` function, and the following methods.
+range it represents.
+
+Range objects have relatively little behavior: they support indexing, contains,
+iteration, the :func:`len` function, and the following methods:
 
 .. method:: range.count(x)
 
-   Return the number of *i*'s for which ``s[i] == x``.  Normally the
-   result will be 0 or 1, but it could be greater if *x* defines an
-   unusual equality function.
+   Return the number of *i*'s for which ``s[i] == x``.
 
     .. versionadded:: 3.2