[issue36435] multiprocessing crashes in Python 3.7.3 on Windows

2019-03-26 Thread Paul Moore
Paul Moore added the comment: Oh doh. That's what I get for trying to produce a minimal test case without thinking :-( Thanks for the pointer. I originally hit this (or what I thought was this) in pipx - see https://github.com/pipxproject/pipx/issues/122 but then tried a smaller test,

[issue36435] multiprocessing crashes in Python 3.7.3 on Windows

2019-03-26 Thread Steve Dower
Steve Dower added the comment: If you make the change suggested in the error text, does it fix it? (It could be clearer, but your module needs to only run its code when __name__=="__main__" instead of every time it gets imported.) -- ___ Python

[issue36435] multiprocessing crashes in Python 3.7.3 on Windows

2019-03-26 Thread Paul Moore
New submission from Paul Moore : If I run the following sample program using Python 3.7.3 (64 bit) for Windows, it immediately fails, producing a massive traceback. import multiprocessing def f(n): return n+1 with multiprocessing.Pool() as p: for n in p.map(f, [1,2,3]):