[Python-checkins] cpython (merge 3.3 -> default): Merge: fix typo in multiprocessing documentation, thanks to Dmitry Tolstoy from

andrew.svetlov python-checkins at python.org
Tue Nov 20 15:14:03 CET 2012


http://hg.python.org/cpython/rev/d3cb8720f17e
changeset: 80528:d3cb8720f17e
parent: 80526:cf606c403f14
parent: 80527:4537dd27b2dc
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Tue Nov 20 16:13:54 2012 +0200
summary:
 Merge: fix typo in multiprocessing documentation, thanks to Dmitry Tolstoy from docs@
files:
 Doc/library/multiprocessing.rst | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -279,7 +279,7 @@
 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]"
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /