summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-20 16:12:38 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-20 16:12:38 +0200
commit6d83ed047ea6ae90e2d20132b13ccbfc45f29e1e (patch)
treea6eb9ffcf42e3a01a8232d7e21b1debc3c172dda
parentebca6e90d71f21f3488f4fccb2533a34d734611b (diff)
downloadcpython-6d83ed047ea6ae90e2d20132b13ccbfc45f29e1e.tar.gz
Fix typo in multiprocessing documentation, thanks to Dmitry Tolstoy from docs@
-rw-r--r--Doc/library/multiprocessing.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index 82c8610418..a783efcdc2 100644
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -279,7 +279,7 @@ For example::
return x*x
if __name__ == '__main__':
- with Pool(processes=4) as pool # start 4 worker processes
+ with Pool(processes=4) as pool: # start 4 worker processes
result = pool.apply_async(f, [10]) # evaluate "f(10)" asynchronously
print(result.get(timeout=1)) # prints "100" unless your computer is *very* slow
print(pool.map(f, range(10))) # prints "[0, 1, 4,..., 81]"