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

esmljaos at codespeak.net esmljaos at codespeak.net
Thu Nov 16 15:15:03 CET 2006


Author: esmljaos
Date: Thu Nov 16 15:15:02 2006
New Revision: 34670

Modified:
   pypy/dist/pypy/rpython/callparse.py
Log:
(arre, iko, oscar, pedronis)

fix this code to work both for oo/ll type systems, it seems is not really used by PyPy tough.



Modified: pypy/dist/pypy/rpython/callparse.py
==============================================================================
--- pypy/dist/pypy/rpython/callparse.py	(original)
+++ pypy/dist/pypy/rpython/callparse.py	Thu Nov 16 15:15:02 2006
@@ -1,6 +1,6 @@
 from pypy.interpreter.argument import Arguments, ArgErr
 from pypy.annotation import model as annmodel
-from pypy.rpython.lltypesystem import rtuple # XXX not independent of type system!
+from pypy.rpython import rtuple
 from pypy.rpython.error import TyperError
 from pypy.rpython.lltypesystem import lltype
 
@@ -137,12 +137,12 @@
         return self.holders
 
     def _emit(self, repr, hop):
-        assert isinstance(repr, rtuple.TupleRepr)
+        assert isinstance(repr, rtuple.AbstractTupleRepr)
         tupleitems_v = []
         for h in self.holders:
             v = h.emit(repr.items_r[len(tupleitems_v)], hop)
             tupleitems_v.append(v)
-        vtuple = rtuple.newtuple(hop.llops, repr, tupleitems_v)
+        vtuple = repr.newtuple(hop.llops, repr, tupleitems_v)
         return vtuple
 
 



More information about the Pypy-commit mailing list