Author: Lukas Diekmann <[email protected]>
Branch: set-strategies
Changeset: r49184:13f5685e273c
Date: 2011-05-27 14:51 +0200
http://bitbucket.org/pypy/pypy/changeset/13f5685e273c/

Log:    fix in EmptySetStrategy.issuperset

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
@@ -247,7 +247,8 @@
         return True
 
     def issuperset(self, w_set, w_other):
-        if isinstance(w_other, W_BaseSetObject) and w_other.strategy is 
EmptySetStrategy:
+        if (isinstance(w_other, W_BaseSetObject) and
+                w_other.strategy is self.space.fromcache(EmptySetStrategy)):
             return True
         elif len(self.space.unpackiterable(w_other)) == 0:
             return True
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to