cpython: 7ccf3d36ad13 (original) (raw)

Mercurial > cpython

changeset 84424:7ccf3d36ad13

Issue #17273: Clarify that pool methods can only be used by parent process. [#17273]

Richard Oudkerk shibturn@gmail.com
date Tue, 02 Jul 2013 12:41:00 +0100
parents 74b7ff20e0e4(current diff)57fe80fda9be(diff)
children d0b48efac9de
files Doc/library/multiprocessing.rst
diffstat 1 files changed, 6 insertions(+), 0 deletions(-)[+] [-] Doc/library/multiprocessing.rst 6

line wrap: on

line diff

--- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -284,6 +284,9 @@ For example:: 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 @@ with the :class:Pool class. initializer is not None then each worker process will call initializer(*initargs) when it starts.