SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72153 0 0 Python

gh-100160: Restore and deprecate implicit creation of an event loop (GH-100410)

Partially revert changes made in GH-93453.

asyncio.DefaultEventLoopPolicy.get_event_loop() now emits a
DeprecationWarning and creates and sets a new event loop instead of
raising a RuntimeError if there is no current event loop set.

Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
S
Serhiy Storchaka committed
e5bd5ad70d9e549eeb80aadb4f3ccb0f2f23266d
Parent: 468c3bf
Committed by GitHub <noreply@github.com> on 1/13/2023, 12:40:29 PM