KEMBAR78
[mypyc] Implement `async for` as a statement and in comprehensions by msullivan · Pull Request #13444 · python/mypy · GitHub
Skip to content

Conversation

msullivan
Copy link
Collaborator

@msullivan msullivan commented Aug 18, 2022

Progress on mypyc/mypyc#868.

@msullivan msullivan force-pushed the async-for branch 3 times, most recently from 76edd2e to 269f634 Compare August 18, 2022 03:30
)

# 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).

@msullivan msullivan merged commit 23146c4 into master Aug 19, 2022
@msullivan msullivan deleted the async-for branch August 19, 2022 03:46
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