From 71ebc3359bb1a5106ba3c282746817d5d44e735b Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Thu, 30 Aug 2001 20:25:55 +0000 Subject: Fix _convert_NAME() so that it doesn't store locals for class bodies. Fix list comp code generation -- emit GET_ITER instead of Const(0) after the list. Add CO_GENERATOR flag to generators. Get CO_xxx flags from the new module --- Lib/compiler/consts.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Lib/compiler/consts.py') diff --git a/Lib/compiler/consts.py b/Lib/compiler/consts.py index ae3d18d35dc..c4a48683db0 100644 --- a/Lib/compiler/consts.py +++ b/Lib/compiler/consts.py @@ -1,6 +1,5 @@ -# code flags -CO_VARARGS = 1 -CO_VARKEYWORDS = 2 +from new import * # import all the CO_xxx flags +del classobj, code, function, instance, instancemethod, module # operation flags OP_ASSIGN = 'OP_ASSIGN' -- cgit v1.2.3