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 ncoghlan
Recipients Olivier.Grisel, brett.cannon, eric.snow, ncoghlan, pitrou, python-dev, sbt
Date 2013-12-14.13:17:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1387027057.66.0.640665170986.issue19946@psf.upfronthosting.co.za>
In-reply-to
Content
Long term fix: runpy.run_path and runpy.run_module need to accept a "target" parameter, multiprocessing needs to use the appropriate one based on whether or not __main__.__spec__ is None.

Short term (3.4) fix: we can expose a private API in runpy akin to the _run_module_as_main that we use to implement the -m switch that will do the right thing for multiprocessing.
History
Date User Action Args
2013-12-14 13:17:37ncoghlansetrecipients: + ncoghlan, brett.cannon, pitrou, python-dev, sbt, eric.snow, Olivier.Grisel
2013-12-14 13:17:37ncoghlansetmessageid: <1387027057.66.0.640665170986.issue19946@psf.upfronthosting.co.za>
2013-12-14 13:17:37ncoghlanlinkissue19946 messages
2013-12-14 13:17:37ncoghlancreate