(original) (raw)
changeset: 84424:7ccf3d36ad13 parent: 84421:74b7ff20e0e4 parent: 84423:57fe80fda9be user: Richard Oudkerk shibturn@gmail.com date: Tue Jul 02 12:41:00 2013 +0100 files: Doc/library/multiprocessing.rst description: Issue #17273: Clarify that pool methods can only be used by parent process. diff -r 74b7ff20e0e4 -r 7ccf3d36ad13 Doc/library/multiprocessing.rst --- a/Doc/library/multiprocessing.rst Tue Jul 02 00:17:14 2013 +0200 +++ b/Doc/library/multiprocessing.rst Tue Jul 02 12:41:00 2013 +0100 @@ -284,6 +284,9 @@ print(result.get(timeout=1)) # prints "100" unless your computer is *very* slow print(pool.map(f, range(10))) # prints "[0, 1, 4,..., 81]" +Note that the methods of a pool should only ever be used by the +process which created it. + Reference --------- @@ -1668,6 +1671,9 @@ *initializer* is not ``None`` then each worker process will call ``initializer(*initargs)`` when it starts. + Note that the methods of the pool object should only be called by + the process which created the pool. + .. versionadded:: 3.2 *maxtasksperchild* is the number of tasks a worker process can complete before it will exit and be replaced with a fresh worker process, to enable /shibturn@gmail.com