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