[pypy-commit] pypy refactor-signature: make viewsignatures always differ

fijal noreply at buildbot.pypy.org
Thu Dec 15 08:53:48 CET 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: refactor-signature
Changeset: r50528:9400300d69d3
Date: 2011-12-15 09:53 +0200
http://bitbucket.org/pypy/pypy/changeset/9400300d69d3/

Log:	make viewsignatures always differ

diff --git a/pypy/module/micronumpy/signature.py b/pypy/module/micronumpy/signature.py
--- a/pypy/module/micronumpy/signature.py
+++ b/pypy/module/micronumpy/signature.py
@@ -116,9 +116,11 @@
         self.child = child
     
     def eq(self, other):
-        if type(self) is not type(other):
-            return False
-        return self.child.eq(other.child)
+        return False # two views are not identical for now
+        # They would be if steps in all dimensions are equal
+        #if type(self) is not type(other):
+        #    return False
+        #return self.child.eq(other.child)
 
     def hash(self):
         return self.child.hash() ^ 0x12345


More information about the pypy-commit mailing list