summaryrefslogtreecommitdiffstats
path: root/Doc/library/itertools.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2007-10-04 00:20:27 (GMT)
committerRaymond Hettinger <python@rcn.com>2007-10-04 00:20:27 (GMT)
commit50e90e265fc3205fc6cc0193d3cebe08e9859b0a (patch)
treee32432fef1d15a607dfff20638fe36c0db463e6c /Doc/library/itertools.rst
parent8f6693701c1899168f5bca96549ae2f2f590624e (diff)
downloadcpython-50e90e265fc3205fc6cc0193d3cebe08e9859b0a.zip
cpython-50e90e265fc3205fc6cc0193d3cebe08e9859b0a.tar.gz
cpython-50e90e265fc3205fc6cc0193d3cebe08e9859b0a.tar.bz2
itertools.count() no longer limited to sys.maxint.
Diffstat (limited to 'Doc/library/itertools.rst')
-rw-r--r--Doc/library/itertools.rst10
1 files changed, 3 insertions, 7 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst
index cb168a8..93e62f6 100644
--- a/Doc/library/itertools.rst
+++ b/Doc/library/itertools.rst
@@ -79,19 +79,15 @@ loops that truncate the stream.
.. function:: count([n])
Make an iterator that returns consecutive integers starting with *n*. If not
- specified *n* defaults to zero. Does not currently support python long
- integers. Often used as an argument to :func:`imap` to generate consecutive
- data points. Also, used with :func:`izip` to add sequence numbers. Equivalent
- to::
+ specified *n* defaults to zero. Often used as an argument to :func:`imap` to
+ generate consecutive data points. Also, used with :func:`izip` to add sequence
+ numbers. Equivalent to::
def count(n=0):
while True:
yield n
n += 1
- Note, :func:`count` does not check for overflow and will return negative numbers
- after exceeding ``sys.maxint``. This behavior may change in the future.
-
.. function:: cycle(iterable)