From 92c3b2190bae6dd7844c83b6acefc0b89d2bc225 Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Sat, 7 Feb 2009 00:54:41 +0000 Subject: Issue #999042: The Python compiler now handles explict global statements correctly (should be assigned using STORE_GLOBAL opcode). This was done by having the system table differentiate between explict and implicit globals. --- Lib/compiler/consts.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Lib/compiler/consts.py') diff --git a/Lib/compiler/consts.py b/Lib/compiler/consts.py index dd42793aa9..022f6daa4c 100644 --- a/Lib/compiler/consts.py +++ b/Lib/compiler/consts.py @@ -4,10 +4,11 @@ OP_DELETE = 'OP_DELETE' OP_APPLY = 'OP_APPLY' SC_LOCAL = 1 -SC_GLOBAL = 2 -SC_FREE = 3 -SC_CELL = 4 -SC_UNKNOWN = 5 +SC_GLOBAL_IMPLICIT = 2 +SC_GLOBAL_EXPLICT = 3 +SC_FREE = 4 +SC_CELL = 5 +SC_UNKNOWN = 6 CO_OPTIMIZED = 0x0001 CO_NEWLOCALS = 0x0002 -- cgit v1.2.1