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

[mypyc] Fix broken cancellation handling in async def#19951

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

Merged
JukkaL merged 2 commits intomasterfromfix-gen-exceptions
Sep 29, 2025

Conversation

@JukkaL
Copy link
Collaborator

Fix an unexpected undefined attribute error in a generator/async def.
The intent was to explicitly check if an attribute was undefined, but the
attribute read implicitly raisedAttributeError, so the check was never
reached. Fixed by allowing error values to be read without raising
AttributeError.

The error this fixes would look like this (with no line number associated with it):

AttributeError("attribute '__mypyc_temp__12' of 'wait_Condition_gen' undefined")

BobTheBuidler reacted with eyes emoji
Fix an unexpected undefined attribute error in a generator/async def.The intent was to explicitly check if an attribute was undefined, but theattribute read implicitly raised `AttributeError`, so the check was neverreached. Fixed by allowing error values to be read.The error would looke like this (with no line number associated with it):```AttributeError("attribute '__mypyc_temp__12' of 'wait_Condition_gen' undefined")```
@JukkaLJukkaL merged commitdf4ae6a intomasterSep 29, 2025
13 checks passed
@JukkaLJukkaL deleted the fix-gen-exceptions branchSeptember 29, 2025 13:56
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@p-sawickip-sawickip-sawicki approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@JukkaL@p-sawicki

[8]ページ先頭

©2009-2025 Movatter.jp