https://github.com/python/cpython/commit/532ecac7712b40e893ade3c870d9c66e05bbc1b8
commit: 532ecac7712b40e893ade3c870d9c66e05bbc1b8
branch: 3.13
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: kumaraditya303 <kumaradi...@python.org>
date: 2025-07-09T09:21:47Z
summary:

[3.13] gh-136447: Use `self.loop` instead of global `loop` variable in asyncio 
REPL (GH-136448) (#136457)

gh-136447: Use `self.loop` instead of global `loop` variable in asyncio REPL 
(GH-136448)
(cherry picked from commit 77fa7a4dcc771bf4d297ebfd4f357483d0750a1c)

Co-authored-by: Justin Su <injus...@gmail.com>

files:
M Lib/asyncio/__main__.py

diff --git a/Lib/asyncio/__main__.py b/Lib/asyncio/__main__.py
index 69f5a30cfe5095..878b3cae4cfc77 100644
--- a/Lib/asyncio/__main__.py
+++ b/Lib/asyncio/__main__.py
@@ -62,7 +62,7 @@ def callback():
             except BaseException as exc:
                 future.set_exception(exc)
 
-        loop.call_soon_threadsafe(callback, context=self.context)
+        self.loop.call_soon_threadsafe(callback, context=self.context)
 
         try:
             return future.result()

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to