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. --- Include/opcode.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Include/opcode.h') diff --git a/Include/opcode.h b/Include/opcode.h index fba74af445..e564bb9d59 100644 --- a/Include/opcode.h +++ b/Include/opcode.h @@ -34,6 +34,7 @@ extern "C" { #define GET_ANEXT 51 #define BEFORE_ASYNC_WITH 52 #define BEGIN_FINALLY 53 +#define END_ASYNC_FOR 54 #define INPLACE_ADD 55 #define INPLACE_SUBTRACT 56 #define INPLACE_MULTIPLY 57 -- cgit v1.2.1