mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-33041: Rework compiling an "async for" loop. (#6142)
* 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.
This commit is contained in:
parent
c65bf3fe4a
commit
702f8f3611
14 changed files with 276 additions and 226 deletions
|
@ -747,8 +747,7 @@ Constants:
|
|||
1: 1
|
||||
Names:
|
||||
0: b
|
||||
1: StopAsyncIteration
|
||||
2: c
|
||||
1: c
|
||||
Variable names:
|
||||
0: a
|
||||
1: d"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue