-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Finish deprecation in asyncio.get_event_loop() #93453
Copy link
Copy link
Closed
Labels
3.10only security fixesonly security fixes3.11only security fixesonly security fixes3.12only security fixesonly security fixesrelease-blockertopic-asynciotype-featureA feature request or enhancementA feature request or enhancement
Metadata
Metadata
Assignees
Labels
3.10only security fixesonly security fixes3.11only security fixesonly security fixes3.12only security fixesonly security fixesrelease-blockertopic-asynciotype-featureA feature request or enhancementA feature request or enhancement
Projects
Status
Done
Status
Done
Since 3.10
asyncio.get_event_loop()emits a deprecation warning if used outside of the event loop (see #83710). It is a time to turn a warning into error and makeasyncio.get_event_loop()an alias ofasyncio.get_running_loop().But maybe we should first deprecate
set_event_loop()? It will be a no-op now.Linked PRs