Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
Open
Labels
3.14bugs and security fixesbugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-subinterpreterstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
InterpreterPoolExecutor takes a thread_name_prefix parameter, but it doesn't propagate to the underlying subinterpreter.
fromconcurrent.futuresimportThreadPoolExecutortry: fromconcurrent.futures.interpreterimportInterpreterPoolExecutor# 3.14+exceptModuleNotFoundError: frominterpreters_backport.concurrent.futures.interpreterimportInterpreterPoolExecutorwithThreadPoolExecutor(thread_name_prefix="test_tpe") astpe_executor: tpe_executor.submit(exec, "import threading;print(threading.current_thread().name)") # withInterpreterPoolExecutor(thread_name_prefix="test_ipe") asipe_executor: ipe_executor.submit(exec, "import threading;print(threading.current_thread().name)")Produces
test_tpe_0 Dummy-1 CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Metadata
Metadata
Assignees
Labels
3.14bugs and security fixesbugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-subinterpreterstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Todo