commit | 6ab9813605213dafaea23e2907d25467b6a52178 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Wed Feb 01 08:55:21 2012 -0800 |
committer | Raymond Hettinger <python@rcn.com> | Wed Feb 01 08:55:21 2012 -0800 |
tree | d749d599424582ae5eff363acee420f3a25c8ce8 | |
parent | 9f55b630601646c7eaab6399eb12e8d61db37dd0 [diff] [blame] |
Use xrange in the example
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 @@ 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)