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

arigo at codespeak.net arigo at codespeak.net
Sun Mar 18 18:09:33 CET 2007


Author: arigo
Date: Sun Mar 18 18:09:30 2007
New Revision: 40710

Modified:
   pypy/dist/pypy/interpreter/astcompiler/ast.py
   pypy/dist/pypy/interpreter/astcompiler/astgen.py
Log:
Translation fix.


Modified: pypy/dist/pypy/interpreter/astcompiler/ast.py
==============================================================================
--- pypy/dist/pypy/interpreter/astcompiler/ast.py	(original)
+++ pypy/dist/pypy/interpreter/astcompiler/ast.py	Sun Mar 18 18:09:30 2007
@@ -60,6 +60,7 @@
         return "Node()"
 
     def descr_repr( self, space ):
+        # most of the __repr__ are not RPython, more work is needed
         return space.wrap( self.__repr__() )
     
     def fget_parent(space, self):
@@ -86,7 +87,7 @@
 Node.typedef = TypeDef('ASTNode',
                        __new__ = interp2app(descr_Node_new, unwrap_spec=[ObjSpace, W_Root, int]),
                        #__repr__ = interp2app(Node.descr_repr, unwrap_spec=['self', ObjSpace] ),
-                       __repr__ = interp2app(Node.descr_repr, unwrap_spec=['self', ObjSpace] ),
+                       #__repr__ = interp2app(Node.descr_repr, unwrap_spec=['self', ObjSpace] ),
                        getChildNodes = interp2app(Node.descr_getChildNodes, unwrap_spec=[ 'self', ObjSpace ] ),
                        accept = interp2app(descr_node_accept, unwrap_spec=[ ObjSpace, W_Root, W_Root ] ),
                        mutate = interp2app(descr_node_mutate, unwrap_spec=[ ObjSpace, W_Root, W_Root ] ),

Modified: pypy/dist/pypy/interpreter/astcompiler/astgen.py
==============================================================================
--- pypy/dist/pypy/interpreter/astcompiler/astgen.py	(original)
+++ pypy/dist/pypy/interpreter/astcompiler/astgen.py	Sun Mar 18 18:09:30 2007
@@ -708,6 +708,7 @@
         return "Node()"
 
     def descr_repr( self, space ):
+        # most of the __repr__ are not RPython, more work is needed
         return space.wrap( self.__repr__() )
     
     def fget_parent(space, self):
@@ -734,7 +735,7 @@
 Node.typedef = TypeDef('ASTNode',
                        __new__ = interp2app(descr_Node_new, unwrap_spec=[ObjSpace, W_Root, int]),
                        #__repr__ = interp2app(Node.descr_repr, unwrap_spec=['self', ObjSpace] ),
-                       __repr__ = interp2app(Node.descr_repr, unwrap_spec=['self', ObjSpace] ),
+                       #__repr__ = interp2app(Node.descr_repr, unwrap_spec=['self', ObjSpace] ),
                        getChildNodes = interp2app(Node.descr_getChildNodes, unwrap_spec=[ 'self', ObjSpace ] ),
                        accept = interp2app(descr_node_accept, unwrap_spec=[ ObjSpace, W_Root, W_Root ] ),
                        mutate = interp2app(descr_node_mutate, unwrap_spec=[ ObjSpace, W_Root, W_Root ] ),



More information about the Pypy-commit mailing list