[pypy-svn] r66332 - pypy/branch/parser-compiler/pypy/module/parser

benjamin at codespeak.net benjamin at codespeak.net
Fri Jul 17 23:15:47 CEST 2009


Author: benjamin
Date: Fri Jul 17 23:15:46 2009
New Revision: 66332

Modified:
   pypy/branch/parser-compiler/pypy/module/parser/pyparser.py
Log:
specialize the seq_maker argument

Modified: pypy/branch/parser-compiler/pypy/module/parser/pyparser.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/module/parser/pyparser.py	(original)
+++ pypy/branch/parser-compiler/pypy/module/parser/pyparser.py	Fri Jul 17 23:15:46 2009
@@ -6,6 +6,7 @@
 from pypy.interpreter.pyparser import pyparse, pygram, error
 from pypy.interpreter.astcompiler.astbuilder import ast_from_node
 from pypy.interpreter.astcompiler.codegen import compile_ast
+from pypy.rlib.objectmodel import specialize
 
 
 class STType(Wrappable):
@@ -14,6 +15,7 @@
         self.tree = tree
         self.mode = mode
 
+    @specialize.arg(3)
     def _build_app_tree(self, space, node, seq_maker, with_lineno, with_column):
         if node.children is not None:
             seq_w = [None]*(len(node.children) + 1)



More information about the Pypy-commit mailing list