This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients SirLalala, amaury.forgeotdarc
Date 2009-10-14.12:04:10
SpamBayes Score 0.0016152808
Marked as misclassified No
Message-id <1255521852.81.0.039768829696.issue7122@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-10-14 12:04:12amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, SirLalala
2009-10-14 12:04:12amaury.forgeotdarcsetmessageid: <1255521852.81.0.039768829696.issue7122@psf.upfronthosting.co.za>
2009-10-14 12:04:11amaury.forgeotdarclinkissue7122 messages
2009-10-14 12:04:10amaury.forgeotdarccreate