]> granicus.if.org Git - python/commitdiff
Fix doc example bug reported on python-list by Akshay Verma.
authorTerry Jan Reedy <tjreedy@udel.edu>
Thu, 24 Jul 2014 00:30:29 +0000 (20:30 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Thu, 24 Jul 2014 00:30:29 +0000 (20:30 -0400)
Doc/library/multiprocessing.rst

index 276339842cd077e6cb457432473c37355f122ca1..471d572f1228f551a4d8b9bc82db5ffa489cbe2e 100644 (file)
@@ -398,7 +398,7 @@ For example::
            print(res.get(timeout=1))             # prints "100"
 
            # make worker sleep for 10 secs
-           res = pool.apply_async(sleep, 10)
+           res = pool.apply_async(sleep, [10])
            print(res.get(timeout=1))             # raises multiprocessing.TimeoutError
 
        # exiting the 'with'-block has stopped the pool