From: Terry Jan Reedy Date: Thu, 24 Jul 2014 00:30:29 +0000 (-0400) Subject: Fix doc example bug reported on python-list by Akshay Verma. X-Git-Tag: v3.5.0a1~1223^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f5388f24fd25c4788fb68251737b4cc238c8960;p=thirdparty%2FPython%2Fcpython.git Fix doc example bug reported on python-list by Akshay Verma. --- diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index 276339842cd0..471d572f1228 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -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