[pypy-svn] r20846 - pypy/dist/pypy/interpreter/astcompiler

ludal at codespeak.net ludal at codespeak.net
Wed Dec 7 17:16:37 CET 2005


Author: ludal
Date: Wed Dec  7 17:16:36 2005
New Revision: 20846

Modified:
   pypy/dist/pypy/interpreter/astcompiler/astgen.py
Log:
remove repr from export of nodes


Modified: pypy/dist/pypy/interpreter/astcompiler/astgen.py
==============================================================================
--- pypy/dist/pypy/interpreter/astcompiler/astgen.py	(original)
+++ pypy/dist/pypy/interpreter/astcompiler/astgen.py	Wed Dec  7 17:16:36 2005
@@ -205,7 +205,7 @@
             fmt = COMMA.join(["%s"] * self.nargs)
             if '(' in self.args:
                 fmt = '(%s)' % fmt
-            vals = ["repr(self.%s)" % name for name in self.argnames]
+            vals = ["self.%s.__repr__()" % name for name in self.argnames]
             vals = COMMA.join(vals)
             if self.nargs == 1:
                 vals = vals + ","
@@ -418,7 +418,7 @@
     return w_obj.descr_accept( space, w_visitor )
 
 Node.typedef = TypeDef('ASTNode',
-		       __repr__ = interp2app(descr_node_repr),
+		       #__repr__ = interp2app(descr_node_repr),
 		       getChildNodes = interp2app(descr_getChildNodes),
 		       accept = interp2app(descr_accept),
 		       )



More information about the Pypy-commit mailing list