[pypy-svn] r66191 - pypy/branch/parser-compiler/pypy/tool

benjamin at codespeak.net benjamin at codespeak.net
Mon Jul 13 22:32:26 CEST 2009


Author: benjamin
Date: Mon Jul 13 22:32:26 2009
New Revision: 66191

Modified:
   pypy/branch/parser-compiler/pypy/tool/stdlib_opcode.py
Log:
add useful constants

Modified: pypy/branch/parser-compiler/pypy/tool/stdlib_opcode.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/tool/stdlib_opcode.py	(original)
+++ pypy/branch/parser-compiler/pypy/tool/stdlib_opcode.py	Mon Jul 13 22:32:26 2009
@@ -19,6 +19,9 @@
     if name in opcode_dict:
         globals()[name] = opcode_dict[name]
 globals().update(opmap)
+SLICE = opmap["SLICE+0"]
+STORE_SLICE = opmap["STORE_SLICE+0"]
+DELETE_SLICE = opmap["DELETE_SLICE+0"]
 
 opcode_method_names = ['MISSING_OPCODE'] * 256
 for name, index in opmap.items():



More information about the Pypy-commit mailing list