You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
set_forkserver_preload should check type of elements in passed list #107963
The code for set_forkserver_preload (also in the latest main branch) should check the type of the elements passed through the module_names parameter, but instead checks the elements of self._preload_modules.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File ".../lib/python3.10/multiprocessing/forkserver.py", line 178, in main
__import__(modname)
TypeError: __import__() argument 1 must be str, not int
Activity
pythongh-107963: Fix set_forkserver_preload to check the type of give…
pythongh-107963: Fix set_forkserver_preload to check the type of give…
pythongh-107963: Fix set_forkserver_preload to check the type of give…
gh-107963: Fix set_forkserver_preload to check the type of given list (…
pythongh-107963: Fix set_forkserver_preload to check the type of give…
pythongh-107963: Fix set_forkserver_preload to check the type of give…
[3.11] gh-107963: Fix set_forkserver_preload to check the type of giv…
[3.12] gh-107963: Fix set_forkserver_preload to check the type of giv…
corona10 commentedon Aug 15, 2023
@mawi2017 Thank you for the report! It is now fixed for Python 3.11+
pythongh-107963: Fix set_forkserver_preload to check the type of give…