summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Core and Builtins
diff options
context:
space:
mode:
authorTony Solomonik <tony.solomonik@gmail.com>2020-07-09 17:38:46 (GMT)
committerGitHub <noreply@github.com>2020-07-09 17:38:46 (GMT)
commit0b6169e391ce6468aad711f08ffb829362293ad5 (patch)
treee4132126562959cb83310dee12320adf564c586a /Misc/NEWS.d/next/Core and Builtins
parent1e66f7e102b64da5a6d69b135cf7d82708aca231 (diff)
downloadcpython-0b6169e391ce6468aad711f08ffb829362293ad5.zip
cpython-0b6169e391ce6468aad711f08ffb829362293ad5.tar.gz
cpython-0b6169e391ce6468aad711f08ffb829362293ad5.tar.bz2
bpo-41247: asyncio.set_running_loop() cache running loop holder (#21406)
The running loop holder cache variable was always set to NULL when calling set_running_loop. Now set_running_loop saves the newly created running loop holder in the cache variable for faster access in get_running_loop.
Diffstat (limited to 'Misc/NEWS.d/next/Core and Builtins')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2020-07-08-22-03-54.bpo-41247.PndYIk.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-07-08-22-03-54.bpo-41247.PndYIk.rst b/Misc/NEWS.d/next/Core and Builtins/2020-07-08-22-03-54.bpo-41247.PndYIk.rst
new file mode 100644
index 0000000..08699b6
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2020-07-08-22-03-54.bpo-41247.PndYIk.rst
@@ -0,0 +1,2 @@
+Always cache the running loop holder when running
+``asyncio.set_running_loop``.