diff options
author | Georg Brandl <georg@python.org> | 2009-09-01 07:34:27 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-09-01 07:34:27 +0000 |
commit | a68d96f71a091275206fdd9d996b050b7a601ee9 (patch) | |
tree | e69cdbb1aaaf4153ccbeaf3c49b4119a869b7dad /Doc/includes | |
parent | 6eb13aa52dd77c3f6dfeeeb0aba86acc1a6c05a3 (diff) | |
download | cpython-a68d96f71a091275206fdd9d996b050b7a601ee9.tar.gz |
#6814: remove traces of xrange().
Diffstat (limited to 'Doc/includes')
-rw-r--r-- | Doc/includes/mp_pool.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/includes/mp_pool.py b/Doc/includes/mp_pool.py index 46eac5a8a9..e360703bd1 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)) |