diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-03-23 14:34:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-23 14:34:35 +0200 |
commit | 702f8f3611bc49b73772cce2b9b041bd11ff9b35 (patch) | |
tree | f712f53a42dc54831e7daf7e3686bc9c875b37b3 /Lib/test/test_dis.py | |
parent | c65bf3fe4a2bde424b79e350f36b7aaa3f6476f6 (diff) | |
download | cpython-git-702f8f3611bc49b73772cce2b9b041bd11ff9b35.tar.gz |
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.
Diffstat (limited to 'Lib/test/test_dis.py')
-rw-r--r-- | Lib/test/test_dis.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py index 098367ca55..c86f61f236 100644 --- a/Lib/test/test_dis.py +++ b/Lib/test/test_dis.py @@ -747,8 +747,7 @@ Constants: 1: 1 Names: 0: b - 1: StopAsyncIteration - 2: c + 1: c Variable names: 0: a 1: d""" |