From c9a5a0e1650b264bdf75e63ecdb577a46adbfd4c Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 1 Sep 2009 07:34:27 +0000 Subject: #6814: remove traces of xrange(). --- Doc/includes/mp_pool.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Doc/includes/mp_pool.py') 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)) -- cgit v1.2.1