[pypy-svn] r40086 - pypy/dist/pypy/module/recparser

afayolle at codespeak.net afayolle at codespeak.net
Thu Mar 8 18:19:56 CET 2007


Author: afayolle
Date: Thu Mar  8 18:19:54 2007
New Revision: 40086

Modified:
   pypy/dist/pypy/module/recparser/__init__.py
Log:
export flag constants to app-level


Modified: pypy/dist/pypy/module/recparser/__init__.py
==============================================================================
--- pypy/dist/pypy/module/recparser/__init__.py	(original)
+++ pypy/dist/pypy/module/recparser/__init__.py	Thu Mar  8 18:19:54 2007
@@ -54,3 +54,10 @@
 from pypy.interpreter.astcompiler.ast import nodeclasses
 for klass_name in nodeclasses:
      Module.interpleveldefs['AST' + klass_name] = 'pypy.interpreter.astcompiler.ast.%s' % klass_name
+
+from pypy.interpreter.astcompiler import consts
+for name in dir(consts):
+    if name.startswith('__') or name in Module.interpleveldefs:
+        continue
+    Module.interpleveldefs[name] = ("space.wrap(%s)" %
+                                    (getattr(consts, name), ))



More information about the Pypy-commit mailing list