summaryrefslogtreecommitdiff
path: root/Lib/compiler/consts.py
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2009-02-07 00:54:41 +0000
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2009-02-07 00:54:41 +0000
commit92c3b2190bae6dd7844c83b6acefc0b89d2bc225 (patch)
tree0cb1e4a65dab9e1ee5f24409d6c758ebc44bb3ba /Lib/compiler/consts.py
parent98c3b85bc4b64307fc12b53210f941c6458bccb5 (diff)
downloadcpython-git-92c3b2190bae6dd7844c83b6acefc0b89d2bc225.tar.gz
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.
Diffstat (limited to 'Lib/compiler/consts.py')
-rw-r--r--Lib/compiler/consts.py9
1 files changed, 5 insertions, 4 deletions
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