[issue29795] Clarify how to share multiprocessing primitives
Max
report at bugs.python.org
Sat Mar 11 19:46:36 EST 2017
Max added the comment:
How about inserting this text somewhere:
Note that sharing and synchronization objects (such as `Queue()`, `Pipe()`, `Manager()`, `Lock()`, `Semaphore()`) should be made available to a new process by passing them as arguments to the `target` function invoked by the `run()` method. Making these objects visible through global variables will only work when the process was started using `fork` (and as such sacrifices portability for no special benefit).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29795>
_______________________________________
More information about the Python-bugs-list
mailing list