[pypy-commit] pypy numpy-dtype-alt: fix translation, you can't call compute_identity_hash n a func ptr

alex_gaynor noreply at buildbot.pypy.org
Sat Aug 20 20:56:21 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: numpy-dtype-alt
Changeset: r46672:14131dc7203e
Date: 2011-08-20 14:01 -0500
http://bitbucket.org/pypy/pypy/changeset/14131dc7203e/

Log:	fix translation, you can't call compute_identity_hash n a func ptr

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
@@ -44,10 +44,4 @@
     _immutable_fields_ = ["func"]
 
     def __init__(self, func):
-        self.func = func
-
-    def eq(self, other):
-        return self.func is other.func
-
-    def hash(self):
-        return compute_identity_hash(self.func)
\ No newline at end of file
+        self.func = func
\ No newline at end of file


More information about the pypy-commit mailing list