diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-11-20 14:12:38 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-11-20 14:12:38 (GMT) |
commit | 23089ab1db23333457149b567c125c10445550b6 (patch) | |
tree | 1077f0a382dd021941cac1098d61cbce9fc9a77d | |
parent | 36f021621e0e877a8d2e9602dc618ab97e658303 (diff) | |
download | cpython-23089ab1db23333457149b567c125c10445550b6.zip cpython-23089ab1db23333457149b567c125c10445550b6.tar.gz cpython-23089ab1db23333457149b567c125c10445550b6.tar.bz2 |
Fix typo in multiprocessing documentation, thanks to Dmitry Tolstoy from docs@
-rw-r--r-- | Doc/library/multiprocessing.rst | 2 |
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]" |