From 702f8f3611bc49b73772cce2b9b041bd11ff9b35 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Fri, 23 Mar 2018 14:34:35 +0200 Subject: 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. --- Lib/test/test_dis.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Lib/test/test_dis.py') 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""" -- cgit v1.2.1