Nick Coghlan added the comment:

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.

----------
dependencies: +Update runpy for PEP 451

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19946>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to