Skip to content

Add bytecode to handle gen.send() corner cases #38

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

Closed
ericsnowcurrently opened this issue Apr 1, 2021 · 1 comment
Closed

Add bytecode to handle gen.send() corner cases #38

ericsnowcurrently opened this issue Apr 1, 2021 · 1 comment
Labels
3.10 Things we could safely do for 3.10

Comments

@ericsnowcurrently
Copy link
Collaborator

( from #35)

Add some bytecodes to generators/co-routines to handle all the corner case code in gen.send(). Callers should not need to check the internal state of the generator, the generator bytecode should handle it.

@markshannon
Copy link
Member

python/cpython#25138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.10 Things we could safely do for 3.10
Projects
Development

No branches or pull requests

2 participants