[issue28625] multiprocessing.Pool.imap swallows exceptions thrown by generators

2016-11-25 Thread Davin Potts
Davin Potts added the comment: Closing this issue -- all further discussion moves to issue28699 -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___

[issue28625] multiprocessing.Pool.imap swallows exceptions thrown by generators

2016-11-16 Thread Davin Potts
Davin Potts added the comment: In issue28699, an important clue has been identified (a variation on the generator triggers a different, inconsistent behavior). I will merge this issue into that one to keep us all on the same page. -- superseder: -> Imap from ThreadPool behaves unexpe

[issue28625] multiprocessing.Pool.imap swallows exceptions thrown by generators

2016-11-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue28625] multiprocessing.Pool.imap swallows exceptions thrown by generators

2016-11-15 Thread Elias Zamaria
Elias Zamaria added the comment: I tried my code in Python 3.6.0b3 and got the same result. -- versions: +Python 3.6 ___ Python tracker ___ __

[issue28625] multiprocessing.Pool.imap swallows exceptions thrown by generators

2016-11-06 Thread Elias Zamaria
New submission from Elias Zamaria: I have the following code: from multiprocessing import Pool def double(x): return 2 * x def get_numbers(): raise Exception("oops") yield 1 yield 2 print(list(Pool(processes=2).imap(double, get_numbers( I would expect it to raise an exce