]> granicus.if.org Git - python/commitdiff
Define constants for types of scopes
authorJeremy Hylton <jeremy@alum.mit.edu>
Thu, 12 Apr 2001 06:39:24 +0000 (06:39 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Thu, 12 Apr 2001 06:39:24 +0000 (06:39 +0000)
Lib/compiler/consts.py
Tools/compiler/compiler/consts.py

index 3b256c16f4b335e1053e0e8cbe2da2c9293e949f..ae3d18d35dcdf1ed2f2e854bcceb3566064a175d 100644 (file)
@@ -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
index 3b256c16f4b335e1053e0e8cbe2da2c9293e949f..ae3d18d35dcdf1ed2f2e854bcceb3566064a175d 100644 (file)
@@ -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