Skip to content

gh-162395: Fix awaited-by links for asyncio.shield() - #162396

Merged
asvetlov merged 4 commits into
python:mainfrom
deadlovelll:gh-162395-shield
Nov 24, 2026
Merged

asvetlov merged 4 commits into
python:mainfrom
deadlovelll:gh-162395-shield

Conversation

@deadlovelll

Copy link
Copy Markdown
Contributor

Fix awaited-by links for asyncio.shield()

See gh-162395

@asvetlov asvetlov added needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Nov 22, 2026

@asvetlov asvetlov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR.

Please address comments

Comment thread Lib/asyncio/tasks.py Resolved
Comment thread Lib/asyncio/tasks.py Outdated
cur_task = None
futures.future_add_to_awaited_by(inner, outer)

def _clear_awaited_by_callback(inner):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: since outer is always set now, this can be a single discard call at the top of _inner_done_callback.

Comment thread Lib/test/test_asyncio/test_graph.py Resolved
@bedevere-app

bedevere-app Bot commented Nov 22, 2026

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@deadlovelll
deadlovelll requested a review from asvetlov November 24, 2026 16:24
@asvetlov
asvetlov merged commit 4743be9 into python:main Nov 24, 2026
63 of 64 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @deadlovelll for the PR, and @asvetlov for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Nov 24, 2026

Copy link
Copy Markdown

GH-162569 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Nov 24, 2026
@bedevere-app

bedevere-app Bot commented Nov 24, 2026

Copy link
Copy Markdown

GH-162570 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Nov 24, 2026
asvetlov pushed a commit that referenced this pull request Nov 24, 2026
… (#162569)

gh-162395: Fix awaited-by links for asyncio.shield() (GH-162396)

* gh-162395: Fix awaited-by links for asyncio.shield()

* fix news lint

* fix c2, c3 of review

* add test for inderect consumers
(cherry picked from commit 4743be9)

Co-authored-by: Timofei Ivankov <128279579+deadlovelll@users.noreply.github.com>
asvetlov pushed a commit that referenced this pull request Nov 24, 2026
… (#162570)

gh-162395: Fix awaited-by links for asyncio.shield() (GH-162396)

* gh-162395: Fix awaited-by links for asyncio.shield()

* fix news lint

* fix c2, c3 of review

* add test for inderect consumers
(cherry picked from commit 4743be9)

Co-authored-by: Timofei Ivankov <128279579+deadlovelll@users.noreply.github.com>
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.

2 participants