summaryrefslogtreecommitdiffstats
path: root/Doc/includes/mp_pool.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-09-01 07:34:27 (GMT)
committerGeorg Brandl <georg@python.org>2009-09-01 07:34:27 (GMT)
commitc9a5a0e1650b264bdf75e63ecdb577a46adbfd4c (patch)
tree3114451bc01e7afc34d3d84369a0b77ba5d332ae /Doc/includes/mp_pool.py
parenta4c05a26a72d3613d9ffbdcc0985a9ec49060b73 (diff)
downloadcpython-c9a5a0e1650b264bdf75e63ecdb577a46adbfd4c.zip
cpython-c9a5a0e1650b264bdf75e63ecdb577a46adbfd4c.tar.gz
cpython-c9a5a0e1650b264bdf75e63ecdb577a46adbfd4c.tar.bz2
#6814: remove traces of xrange().
Diffstat (limited to 'Doc/includes/mp_pool.py')
-rw-r--r--Doc/includes/mp_pool.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/includes/mp_pool.py b/Doc/includes/mp_pool.py
index 46eac5a..e360703 100644
--- a/Doc/includes/mp_pool.py
+++ b/Doc/includes/mp_pool.py
@@ -98,17 +98,17 @@ def test():
t = time.time()
A = list(map(pow3, range(N)))
- print('\tmap(pow3, xrange(%d)):\n\t\t%s seconds' % \
+ print('\tmap(pow3, range(%d)):\n\t\t%s seconds' % \
(N, time.time() - t))
t = time.time()
B = pool.map(pow3, range(N))
- print('\tpool.map(pow3, xrange(%d)):\n\t\t%s seconds' % \
+ print('\tpool.map(pow3, range(%d)):\n\t\t%s seconds' % \
(N, time.time() - t))
t = time.time()
C = list(pool.imap(pow3, range(N), chunksize=N//8))
- print('\tlist(pool.imap(pow3, xrange(%d), chunksize=%d)):\n\t\t%s' \
+ print('\tlist(pool.imap(pow3, range(%d), chunksize=%d)):\n\t\t%s' \
' seconds' % (N, N//8, time.time() - t))
assert A == B == C, (len(A), len(B), len(C))