From: Jeremy Hylton Date: Thu, 12 Apr 2001 06:39:24 +0000 (+0000) Subject: Define constants for types of scopes X-Git-Tag: v2.1c1~70 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53ee2a94c70875b7b334ddca59900933409eaa63;p=thirdparty%2FPython%2Fcpython.git Define constants for types of scopes --- diff --git a/Lib/compiler/consts.py b/Lib/compiler/consts.py index 3b256c16f4b3..ae3d18d35dcd 100644 --- a/Lib/compiler/consts.py +++ b/Lib/compiler/consts.py @@ -7,3 +7,8 @@ OP_ASSIGN = 'OP_ASSIGN' OP_DELETE = 'OP_DELETE' OP_APPLY = 'OP_APPLY' +SC_LOCAL = 1 +SC_GLOBAL = 2 +SC_FREE = 3 +SC_CELL = 4 +SC_UNKNOWN = 5 diff --git a/Tools/compiler/compiler/consts.py b/Tools/compiler/compiler/consts.py index 3b256c16f4b3..ae3d18d35dcd 100644 --- a/Tools/compiler/compiler/consts.py +++ b/Tools/compiler/compiler/consts.py @@ -7,3 +7,8 @@ OP_ASSIGN = 'OP_ASSIGN' OP_DELETE = 'OP_DELETE' OP_APPLY = 'OP_APPLY' +SC_LOCAL = 1 +SC_GLOBAL = 2 +SC_FREE = 3 +SC_CELL = 4 +SC_UNKNOWN = 5