[pypy-svn] r47429 - pypy/dist/pypy/rpython/ootypesystem

arigo at codespeak.net arigo at codespeak.net
Sat Oct 13 19:38:14 CEST 2007


Author: arigo
Date: Sat Oct 13 19:38:14 2007
New Revision: 47429

Modified:
   pypy/dist/pypy/rpython/ootypesystem/rtuple.py
Log:
It doesn't make much sense to ask for the id() of a tuple.
The AbstractTupleRepr provides an rtype_id() that complains
appropriately.


Modified: pypy/dist/pypy/rpython/ootypesystem/rtuple.py
==============================================================================
--- pypy/dist/pypy/rpython/ootypesystem/rtuple.py	(original)
+++ pypy/dist/pypy/rpython/ootypesystem/rtuple.py	Sat Oct 13 19:38:14 2007
@@ -33,10 +33,6 @@
         cname = inputconst(ootype.Void, name)
         return  llops.genop("oogetfield", [v_tuple, cname], resulttype=llresult)
 
-    def rtype_id(self, hop):
-        vinst, = hop.inputargs(self)
-        return hop.genop('ooidentityhash', [vinst], resulttype=ootype.Signed)
-
     def rtype_bltn_list(self, hop):
         from pypy.rpython.ootypesystem import rlist
         v_tup = hop.inputarg(self, 0)



More information about the Pypy-commit mailing list