◐ Shell
clean mode source ↗

bpo-33041: Rework compiling an "async for" loop. by serhiy-storchaka · Pull Request #6142 · python/cpython

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@serhiy-storchaka

  • 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.

https://bugs.python.org/issue33041

* 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

1st1 approved these changes Mar 19, 2018

Choose a reason for hiding this comment

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

LGTM, Serhiy. Thanks!

@bedevere-bot

@serhiy-storchaka: Please replace # with GH- in the commit message next time. Thanks!

Labels

type-bug

An unexpected behavior, bug, or error