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-128340: make asyncio.events.Handle.cancel() atomic#128347

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

Draft
graingert wants to merge5 commits intopython:main
base:main
Choose a base branch
Loading
fromgraingert:atomic-asyncio-handle-cancel

Conversation

@graingert
Copy link
Contributor

@graingertgraingert commentedDec 30, 2024
edited by bedevere-appbot
Loading

Comment on lines 105 to 121
@property
def_cancelled(self):
returnself.cancelled()

@property
def_callback(self):
callback_args=self._callback_args
ifcallback_argsis_HANDLE_CANCELLED:
returnNone
returncallback_args[0]

@property
def_args(self):
callback_args=self._callback_args
ifcallback_argsis_HANDLE_CANCELLED:
returnNone
returncallback_args[1]
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

the tests access private attributes - I'd rather update those tests. These properties were just to get a PR up and passing CI quickly.

foriinrange(ntodo):
handle=self._ready.popleft()
ifhandle._cancelled:
ifhandle.cancelled():
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

This check is redundant because _run checks now

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

Reviewers

@1st11st1Awaiting requested review from 1st11st1 will be requested when the pull request is marked ready for review1st1 is a code owner

@asvetlovasvetlovAwaiting requested review from asvetlovasvetlov will be requested when the pull request is marked ready for reviewasvetlov is a code owner

@kumaraditya303kumaraditya303Awaiting requested review from kumaraditya303kumaraditya303 will be requested when the pull request is marked ready for reviewkumaraditya303 is a code owner

@willingcwillingcAwaiting requested review from willingcwillingc will be requested when the pull request is marked ready for reviewwillingc is a code owner

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@graingert

[8]ページ先頭

©2009-2025 Movatter.jp