From: Jeremy Hylton Date: Mon, 17 Dec 2001 23:57:17 +0000 (+0000) Subject: Backport bugfixes from the trunk. X-Git-Tag: v2.1.2c1~46 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a18d63e57d15699bea90eaf04b66743416ab9be9;p=thirdparty%2FPython%2Fcpython.git Backport bugfixes from the trunk. Only real change is to track movement of CO_ consts to here. --- diff --git a/Tools/compiler/compiler/consts.py b/Tools/compiler/compiler/consts.py index ae3d18d35dcd..fdb0a745e082 100644 --- a/Tools/compiler/compiler/consts.py +++ b/Tools/compiler/compiler/consts.py @@ -1,7 +1,3 @@ -# code flags -CO_VARARGS = 1 -CO_VARKEYWORDS = 2 - # operation flags OP_ASSIGN = 'OP_ASSIGN' OP_DELETE = 'OP_DELETE' @@ -12,3 +8,9 @@ SC_GLOBAL = 2 SC_FREE = 3 SC_CELL = 4 SC_UNKNOWN = 5 + +CO_OPTIMIZED = 0x0001 +CO_NEWLOCALS = 0x0002 +CO_VARARGS = 0x0004 +CO_VARKEYWORDS = 0x0008 +CO_NESTED = 0x0010