diff options
author | Raymond Hettinger <python@rcn.com> | 2012-02-01 16:55:21 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2012-02-01 16:55:21 (GMT) |
commit | 6ab9813605213dafaea23e2907d25467b6a52178 (patch) | |
tree | d749d599424582ae5eff363acee420f3a25c8ce8 /Doc | |
parent | 9f55b630601646c7eaab6399eb12e8d61db37dd0 (diff) | |
download | cpython-6ab9813605213dafaea23e2907d25467b6a52178.zip cpython-6ab9813605213dafaea23e2907d25467b6a52178.tar.gz cpython-6ab9813605213dafaea23e2907d25467b6a52178.tar.bz2 |
Use xrange in the example
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/itertools.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 9b3f1c1..a553d09 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -593,7 +593,7 @@ loops that truncate the stream. A common use for *repeat* is to supply a stream of constant values to *imap* or *zip*:: - >>> list(imap(pow, range(10), repeat(2))) + >>> list(imap(pow, xrange(10), repeat(2))) [0, 1, 4, 9, 16, 25, 36, 49, 64, 81] .. function:: starmap(function, iterable) |