[pypy-commit] pypy default: give up and implement this convert_from_to

fijal noreply at buildbot.pypy.org
Thu Feb 21 16:26:55 CET 2013


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r61551:705665c5ba31
Date: 2013-02-21 17:25 +0200
http://bitbucket.org/pypy/pypy/changeset/705665c5ba31/

Log:	give up and implement this convert_from_to

diff --git a/rpython/rtyper/rptr.py b/rpython/rtyper/rptr.py
--- a/rpython/rtyper/rptr.py
+++ b/rpython/rtyper/rptr.py
@@ -347,3 +347,10 @@
         if r_from.lowleveltype == r_to.lowleveltype:
             return v
         return NotImplemented
+
+class __extend__(pairtype(InteriorPtrRepr, InteriorPtrRepr)):
+
+    def convert_from_to((r_from, r_to), v, llops):
+        if r_from.__dict__ == r_to.__dict__:
+            return v
+        return NotImplemented


More information about the pypy-commit mailing list