[issue19946] Have multiprocessing raise ImportError when spawning a process that can't find the "main" module

Olivier Grisel report at bugs.python.org
Fri Dec 13 20:40:13 CET 2013


Olivier Grisel added the comment:

For Python 3.4:

Maybe rather than raising ImportError, we could issue warning to notify the users that names from the __main__ namespace could not be loaded and make the init_module_attrs return early.

This way a multiprocessing program that only calls functions defined in non-main namespaces could still use the new "start method" feature introduced in Python 3.4 while not changing the Python 3.3 semantics for windows programs and not relying on any deprecated hack.

----------

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


More information about the Python-bugs-list mailing list