Source

pypy / pypy / rpython / ootypesystem / rtupletype.py

Diff from to

pypy/rpython/ootypesystem/rtupletype.py

 
 def TUPLE_TYPE(field_lltypes):
     if len(field_lltypes) == 0:
-        return Void      # empty tuple
+        return ootype.Void      # empty tuple
     else:
         fields = [('item%d' % i, TYPE) for i, TYPE in enumerate(field_lltypes)]
         hints = {'immutable': True,
                  'noidentity': True}
-        return ootype.Record(dict(fields), _hints=hints)
+        return ootype.Record(fields, _hints=hints)