[pypy-commit] pypy default: Probably a better version, not always returning True (the other version

arigo pypy.commits at gmail.com
Wed May 25 12:16:22 EDT 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r84688:8360db465992
Date: 2016-05-25 18:16 +0200
http://bitbucket.org/pypy/pypy/changeset/8360db465992/

Log:	Probably a better version, not always returning True (the other
	version makes the annotator constant-fold tests on that value)

diff --git a/pypy/module/micronumpy/compile.py b/pypy/module/micronumpy/compile.py
--- a/pypy/module/micronumpy/compile.py
+++ b/pypy/module/micronumpy/compile.py
@@ -125,7 +125,7 @@
         return None
 
     def issubtype_w(self, w_sub, w_type):
-        return True
+        return w_sub is w_type
 
     def isinstance_w(self, w_obj, w_tp):
         try:


More information about the pypy-commit mailing list