Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mypyc] Implement async for as a statement and in comprehensions #13444

Merged
merged 1 commit into from
Aug 19, 2022

Conversation

msullivan
Copy link
Collaborator

@msullivan msullivan commented Aug 18, 2022

Progress on mypyc/mypyc#868.

)

# this would be anext(obj) if it existed
anext_op = custom_op(
Copy link
Member

Choose a reason for hiding this comment

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

Since you are adding primitives, maybe also add few IR tests?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure if it would add much value here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

(I went and merged but will add IR tests if you think it's important)

Copy link
Member

Choose a reason for hiding this comment

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

They are much faster than run tests, and also I remember similar tests for non-async for were helpful when I implemented some special-casing a while ago (but maybe I care too much about generated code looking good, not just being correct).

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