bpo-33041: Rework compiling an "async for" loop. by serhiy-storchaka · Pull Request #6142 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.8k
Conversation
- Added new opcode END_ASYNC_FOR.
- Setting global StopAsyncIteration no longer breaks "async for" loops.
- Jumping into an "async for" loop is now disabled.
- Jumping out of an "async for" loop no longer corrupts the stack.
- Simplify the compiler.
* Added new opcode END_ASYNC_FOR. * Setting global StopAsyncIteration no longer breaks "async for" loops. * Jumping into an "async for" loop is now disabled. * Jumping out of an "async for" loop no longer corrupts the stack. * Simplify the compiler.
1st1
approved these changes
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Serhiy. Thanks!
@serhiy-storchaka: Please replace # with GH- in the commit message next time. Thanks!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters