Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-100160: Restore and deprecate implicit creation of an event loop #100410

Merged

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Dec 21, 2022

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.

Partially revert changes made in pythonGH-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.
Doc/library/asyncio-eventloop.rst Outdated Show resolved Hide resolved
Doc/library/asyncio-eventloop.rst Outdated Show resolved Hide resolved
Doc/library/asyncio-policy.rst Outdated Show resolved Hide resolved
Lib/asyncio/events.py Show resolved Hide resolved
Lib/asyncio/events.py Show resolved Hide resolved
@serhiy-storchaka serhiy-storchaka changed the title gh-100160: Deprecate implicit creation of an event loop gh-100160: Restore and deprecate implicit creation of an event loop Jan 12, 2023
@serhiy-storchaka serhiy-storchaka merged commit e5bd5ad into python:main Jan 13, 2023
@serhiy-storchaka serhiy-storchaka deleted the asyncio-get_event_loop3-3.12 branch January 13, 2023 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants