[issue10128] multiprocessing.Pool throws exception with __main__.py
Michael Olson
report at bugs.python.org
Sun Oct 17 21:36:59 CEST 2010
Michael Olson <olson at irinim.net> added the comment:
I wrapped the offending assertion in a if main_name != '__main__'. I considered not checking the module_name against built-in modules but that seemed likely to be the sort of thing being guarded against, so I left it at an exception for __main__.
Ran a few trivial testing using Pool and Process and it seems to work fine.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10128>
_______________________________________
More information about the Python-bugs-list
mailing list