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

Nick Coghlan report at bugs.python.org
Wed Dec 11 13:34:41 CET 2013


Nick Coghlan added the comment:

Rerunning main in the subprocess has always been a slightly dubious feature
of multiprocessing, but IIRC it's a necessary hack to ensure pickle
compatibility for things defined in __main__. Using "runpy.run_path" would
be a better solution, but we'll need to add the "target" parameter that
missed the beta1 deadline.

----------

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


More information about the Python-bugs-list mailing list