← 返回首页
[3.10] gh-93453: Only emit deprecation warning in asyncio.get_event_loop when a new event loop is created by ambv · Pull Request #100059 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

[3.10] gh-93453: Only emit deprecation warning in asyncio.get_event_loop when a new event loop is created#100059

Merged
ambv merged 2 commits into
python:3.10from
ambv:backport-3fae04b-3.10
Dec 6, 2022
Merged

[3.10] gh-93453: Only emit deprecation warning in asyncio.get_event_loop when a new event loop is created#100059
ambv merged 2 commits into
python:3.10from
ambv:backport-3fae04b-3.10

Conversation

ambv commented Dec 6, 2022
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

It no longer emits a deprecation warning if the current event loop was set.

(cherry picked from commit 3fae04b)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Łukasz Langa lukasz@langa.pl

Note: this backport also contains a change to tests_asyncio.test_tasks.BaseTaskTests.test_as_completed_coroutine_use_global_loop which was later removed in GH-31964 by Yury so is absent from Serhiy's changes to 3.11 and 3.12.

…o.get_event_loop when a new event loop is created (pythonGH-99949) It no longer emits a deprecation warning if the current event loop was set. Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 3fae04b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Comment thread Doc/library/asyncio-policy.rst Show resolved Hide resolved
ambv requested a review from serhiy-storchaka December 6, 2022 15:52
Comment thread Doc/library/asyncio-eventloop.rst Outdated Show resolved Hide resolved
Comment thread Doc/library/asyncio-policy.rst Show resolved Hide resolved
Comment thread Lib/test/test_asyncio/test_tasks.py Show resolved Hide resolved
ambv merged commit 300d812 into python:3.10 Dec 6, 2022
ambv deleted the backport-3fae04b-3.10 branch December 6, 2022 17:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Footer

© 2026 GitHub, Inc.