[pypy-svn] r13491 - pypy/dist/pypy/rpython

arigo at codespeak.net arigo at codespeak.net
Thu Jun 16 23:07:00 CEST 2005


Author: arigo
Date: Thu Jun 16 23:06:59 2005
New Revision: 13491

Modified:
   pypy/dist/pypy/rpython/interp.py
Log:
Updated XXX comments.


Modified: pypy/dist/pypy/rpython/interp.py
==============================================================================
--- pypy/dist/pypy/rpython/interp.py	(original)
+++ pypy/dist/pypy/rpython/interp.py	Thu Jun 16 23:06:59 2005
@@ -90,6 +90,8 @@
             try:
                 self.eval_operation(op)
             except RPythonError, e:
+                # XXX should only catch exceptions from the last operation
+                # XXX non-caught exceptions should just be allowed to propagate
                 assert catch_exception, 'exception received, but not expected'
 
         # determine nextblock and/or return value 
@@ -146,19 +148,15 @@
 
     def op_setfield(self, obj, fieldname, fieldvalue): 
         # obj should be pointer
-        setattr(obj, fieldname, fieldvalue) # is that right?  -- yes
+        setattr(obj, fieldname, fieldvalue)
         
     def op_getarrayitem(self,array,index):
         return array[index]
     
     def op_setarrayitem(self,array,index,item):
         array[index] = item
-        return array
         
     def op_direct_call(self, f, *args):
-        # XXX the logic should be:
-        #       if f._obj has a graph attribute, interpret
-        #       that graph without looking at _callable
         if hasattr(f._obj, 'graph'):
             return self.eval_graph(f._obj.graph, args)
         return self.eval_function(f._obj._callable, args)



More information about the Pypy-commit mailing list