[issue39931] Global variables are not accessible from child processes (multiprocessing.Pool)

2020-11-10 Thread Josh Rosenberg
Change by Josh Rosenberg : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39931] Global variables are not accessible from child processes (multiprocessing.Pool)

2020-11-09 Thread Ronald Oussoren
Ronald Oussoren added the comment: Can this issue be closed? Multiprocessing seems to work as designed. There is a behaviour change between 3.7 and 3.8, but that's documented in What's New. -- ___ Python tracker

[issue39931] Global variables are not accessible from child processes (multiprocessing.Pool)

2020-03-11 Thread Ned Deily
Change by Ned Deily : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39931] Global variables are not accessible from child processes (multiprocessing.Pool)

2020-03-11 Thread STINNER Victor
STINNER Victor added the comment: > Shared memory/pickle cannot send file descriptors FYI Python 3.9 got new socket.send_fds() and socket.recv_fds() functions :-) https://docs.python.org/dev/library/socket.html#socket.socket.send_fds -- nosy: +vstinner

[issue39931] Global variables are not accessible from child processes (multiprocessing.Pool)

2020-03-11 Thread agmt
agmt added the comment: Shared memory/pickle cannot send file descriptors -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue39931] Global variables are not accessible from child processes (multiprocessing.Pool)

2020-03-11 Thread Thomas Grainger
Thomas Grainger added the comment: yeah this is normal. on Python 3.8 mac multiprocessing switched to spawn you have to use https://docs.python.org/3/library/multiprocessing.shared_memory.html to share content between processes or pass it to be pickled in the args of imap_unordered

[issue39931] Global variables are not accessible from child processes (multiprocessing.Pool)

2020-03-11 Thread agmt
New submission from agmt : Attached test works correctly on linux (3.7, 3.8) and mac (only 3.7). Mac python3.8 falls with exception: multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File