[pypy-svn] r26409 - pypy/dist/pypy/rpython/ootypesystem
nik at codespeak.net
nik at codespeak.net
Thu Apr 27 09:26:00 CEST 2006
Author: nik
Date: Thu Apr 27 09:25:57 2006
New Revision: 26409
Modified:
pypy/dist/pypy/rpython/ootypesystem/rtuple.py
Log:
use Records for tuple iterators.
Modified: pypy/dist/pypy/rpython/ootypesystem/rtuple.py
==============================================================================
--- pypy/dist/pypy/rpython/ootypesystem/rtuple.py (original)
+++ pypy/dist/pypy/rpython/ootypesystem/rtuple.py Thu Apr 27 09:25:57 2006
@@ -1,6 +1,5 @@
from pypy.rpython.rmodel import inputconst
from pypy.rpython.rtuple import AbstractTupleRepr, AbstractTupleIteratorRepr
-from pypy.rpython.ootypesystem.riterable import iterator_type
from pypy.rpython.ootypesystem import ootype
@@ -67,7 +66,8 @@
def __init__(self, r_tuple):
self.r_tuple = r_tuple
- self.lowleveltype = iterator_type(r_tuple)
+ self.lowleveltype = ootype.Record(
+ {"iterable": r_tuple.lowleveltype, "index": ootype.Signed})
self.ll_tupleiter = ll_tupleiter
self.ll_tuplenext = ll_tuplenext
More information about the Pypy-commit
mailing list