Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-97907: use cancellation error from child if possible#133243

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
duaneg wants to merge3 commits intopython:main
base:main
Choose a base branch
Loading
fromduaneg:gh-97907

Conversation

duaneg
Copy link
Contributor

@duanegduaneg commentedMay 1, 2025
edited by bedevere-appbot
Loading

At present when cancelling the result of an :func:asncio.gather call, the last child is used to create the cancellation error. If that was not cancelled but another child was, its cancellation message and traceback will be lost.

Fix this by using the cancellation error from the first of the children to be cancelled, if any, falling back to the last child only if none have been.

At present when cancelling the result of an :func:`asncio.gather` call, thelast child is used to create the cancellation error. If that was not cancelledbut another child was, its cancellation message and traceback will be lost.Fix this by using the cancellation error from the first of the children to becancelled, if any, falling back to the last child only if none have been.
@bedevere-app
Copy link

Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply theskip news label instead.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@1st11st1Awaiting requested review from 1st11st1 is a code owner

@asvetlovasvetlovAwaiting requested review from asvetlovasvetlov is a code owner

@kumaraditya303kumaraditya303Awaiting requested review from kumaraditya303kumaraditya303 is a code owner

@willingcwillingcAwaiting requested review from willingcwillingc is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@duaneg@ZeroIntensity

[8]ページ先頭

©2009-2025 Movatter.jp