From 5e3baa9c8a2f03ce3a2e27ca69f23fa6e3a32370 Mon Sep 17 00:00:00 2001 From: AN Long Date: Sat, 27 Sep 2025 00:00:55 +0900 Subject: [PATCH 1/2] Export some names in concurrent.interpreters --- Lib/concurrent/interpreters/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Lib/concurrent/interpreters/__init__.py b/Lib/concurrent/interpreters/__init__.py index ea4147ee9a25da..2ca7bbe2ff5aae 100644 --- a/Lib/concurrent/interpreters/__init__.py +++ b/Lib/concurrent/interpreters/__init__.py @@ -10,8 +10,8 @@ is_shareable, ) from ._queues import ( - create as create_queue, - Queue, QueueEmpty, QueueFull, + create as create_queue, ItemInterpreterDestroyed, + Queue, QueueEmpty, QueueFull, UNBOUND, UNBOUND_ERROR, UNBOUND_REMOVE, ) @@ -19,8 +19,9 @@ 'get_current', 'get_main', 'create', 'list_all', 'is_shareable', 'Interpreter', 'InterpreterError', 'InterpreterNotFoundError', 'ExecutionFailed', - 'NotShareableError', + 'NotShareableError', 'ItemInterpreterDestroyed', 'create_queue', 'Queue', 'QueueEmpty', 'QueueFull', + 'UNBOUND', 'UNBOUND_ERROR', 'UNBOUND_REMOVE', ] From 57ea541cd91dde4f64d54acf2b63488c032413f7 Mon Sep 17 00:00:00 2001 From: AN Long Date: Sat, 27 Sep 2025 00:03:28 +0900 Subject: [PATCH 2/2] Add news entry --- .../next/Library/2025-09-27-00-03-26.gh-issue-139360.Vp1svY.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2025-09-27-00-03-26.gh-issue-139360.Vp1svY.rst diff --git a/Misc/NEWS.d/next/Library/2025-09-27-00-03-26.gh-issue-139360.Vp1svY.rst b/Misc/NEWS.d/next/Library/2025-09-27-00-03-26.gh-issue-139360.Vp1svY.rst new file mode 100644 index 00000000000000..516b334164ac50 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-09-27-00-03-26.gh-issue-139360.Vp1svY.rst @@ -0,0 +1,2 @@ +Export **UNBOUND** / **UNBOUND_ERROR** / **UNBOUND_REMOVE** / +**ItemInterpreterDestroyed** in :mod:`concurrent.interpreters`.