summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-20 14:13:54 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-20 14:13:54 (GMT)
commit47037d7e4e1f0f71a7640f1e71f8d558c3ac6668 (patch)
tree57fb3de4ea65142620c6d319c398e36d4a0edf9a /Doc
parente5b45cc5e51972dde96d418b445a89e8d9d7f149 (diff)
parent23089ab1db23333457149b567c125c10445550b6 (diff)
downloadcpython-47037d7e4e1f0f71a7640f1e71f8d558c3ac6668.zip
cpython-47037d7e4e1f0f71a7640f1e71f8d558c3ac6668.tar.gz
cpython-47037d7e4e1f0f71a7640f1e71f8d558c3ac6668.tar.bz2
Merge: fix typo in multiprocessing documentation, thanks to Dmitry Tolstoy from docs@
Diffstat (limited to 'Doc')
-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 82c8610..a783efc 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]"