[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 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/pool.py",
 line 125, in worker
result = (True, func(*args, **kwds))
  File "test.py", line 8, in work
print(F"Work={arg} args={args}")
NameError: name 'args' is not defined
"""

--
components: Library (Lib), macOS
files: test.py
messages: 363892
nosy: agmt, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Global variables are not accessible from child processes 
(multiprocessing.Pool)
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file48968/test.py

___
Python tracker 
<https://bugs.python.org/issue39931>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
<https://bugs.python.org/issue39931>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com