[issue26333] Multiprocessing imap hangs when generator input errors

2016-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you add the "if __name__ == '__main__':" guard after defining the target function, as specified in the multiprocessing doc, you will get a traceback much as you expect: Traceback (most recent call last): File "F:\Python\mypy\tem.py", line 12, in for

[issue26333] Multiprocessing imap hangs when generator input errors

2016-02-12 Thread Davin Potts
Changes by Davin Potts : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue26333] Multiprocessing imap hangs when generator input errors

2016-02-10 Thread SilentGhost
Changes by SilentGhost : -- nosy: +jnoller, sbt versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue26333] Multiprocessing imap hangs when generator input errors

2016-02-10 Thread Aaron Halfaker
New submission from Aaron Halfaker: multiprocessing.imap will hang and not raise an error if an error occurs in the generator that is being mapped over. I'd expect the error to be raised and/or the process to fail. For example, run the following code in python 2.7 or 3.4: from multipro