[pypy-commit] pypy default: prevent useless comparisons between IntSet and UnicodeSet

bdkearns noreply at buildbot.pypy.org
Mon Mar 25 12:19:09 CET 2013


Author: Brian Kearns <bdkearns at gmail.com>
Branch: 
Changeset: r62740:b05ee63f0d20
Date: 2013-03-25 07:18 -0400
http://bitbucket.org/pypy/pypy/changeset/b05ee63f0d20/

Log:	prevent useless comparisons between IntSet and UnicodeSet

diff --git a/pypy/objspace/std/setobject.py b/pypy/objspace/std/setobject.py
--- a/pypy/objspace/std/setobject.py
+++ b/pypy/objspace/std/setobject.py
@@ -805,6 +805,8 @@
     def may_contain_equal_elements(self, strategy):
         if strategy is self.space.fromcache(StringSetStrategy):
             return False
+        if strategy is self.space.fromcache(UnicodeSetStrategy):
+            return False
         if strategy is self.space.fromcache(EmptySetStrategy):
             return False
         return True


More information about the pypy-commit mailing list