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.
This commit is contained in:
Neil Schemenauer 2009-02-07 00:54:41 +00:00
parent 98c3b85bc4
commit 92c3b2190b
4 changed files with 18 additions and 10 deletions

View file

@ -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