Message206180
| 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. |
|