[pypy-svn] r66269 - pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools

benjamin at codespeak.net benjamin at codespeak.net
Thu Jul 16 02:17:27 CEST 2009


Author: benjamin
Date: Thu Jul 16 02:17:27 2009
New Revision: 66269

Modified:
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools/asdl_py.py
Log:
make ast nodes extendable, so we can add custom code elsewhere

Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools/asdl_py.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools/asdl_py.py	(original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/tools/asdl_py.py	Thu Jul 16 02:17:27 2009
@@ -209,9 +209,12 @@
 HEAD = """# Generated by tools/asdl_py.py
 from pypy.interpreter.baseobjspace import Wrappable
 from pypy.interpreter import typedef
+from pypy.tool.pairtype import extendabletype
 
 class AST(Wrappable):
 
+    __metaclass__ = extendabletype
+
     def walkabout(self, visitor):
         raise AssertionError("walkabout() implementation not provided")
 



More information about the Pypy-commit mailing list