From 458120dd40db6b4df55a4e96b650e16798ef06a0 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 3 May 2011 11:25:13 +0000 Subject: add hg and python --- sys/lib/python/compiler/consts.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 sys/lib/python/compiler/consts.py (limited to 'sys/lib/python/compiler/consts.py') diff --git a/sys/lib/python/compiler/consts.py b/sys/lib/python/compiler/consts.py new file mode 100644 index 000000000..c79e814be --- /dev/null +++ b/sys/lib/python/compiler/consts.py @@ -0,0 +1,21 @@ +# operation flags +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 + +CO_OPTIMIZED = 0x0001 +CO_NEWLOCALS = 0x0002 +CO_VARARGS = 0x0004 +CO_VARKEYWORDS = 0x0008 +CO_NESTED = 0x0010 +CO_GENERATOR = 0x0020 +CO_GENERATOR_ALLOWED = 0 +CO_FUTURE_DIVISION = 0x2000 +CO_FUTURE_ABSIMPORT = 0x4000 +CO_FUTURE_WITH_STATEMENT = 0x8000 -- cgit v1.2.3