[issue7122] multiprocessing.Pool() problem in windows

Amaury Forgeot d'Arc report at bugs.python.org
Wed Oct 14 14:04:12 CEST 2009


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

This difference between Unix and Windows is documented there:
http://docs.python.org/library/multiprocessing.html#windows
Please carefully read the paragraph named "Safe importing of main module".

You will certainly need to add a condition like
   if __name__ == '__main__':
so that subprocesses (which start a new Python interpreter from the
start) don't start another Pool themselves.

----------
nosy: +amaury.forgeotdarc
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7122>
_______________________________________


More information about the Python-bugs-list mailing list