]> granicus.if.org Git - python/commitdiff
Fix typo in multiprocessing documentation, thanks to Dmitry Tolstoy from docs@
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Tue, 20 Nov 2012 14:12:38 +0000 (16:12 +0200)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Tue, 20 Nov 2012 14:12:38 +0000 (16:12 +0200)
Doc/library/multiprocessing.rst

index 82c86104183244ae193124750b777eb25b6e5c15..a783efcdc26473ed2d06e8afc23a25846aa5384f 100644 (file)
@@ -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]"