[pypy-commit] pypy set-strategies: no need to check since w_other is always a set here

l.diekmann noreply at buildbot.pypy.org
Thu Nov 10 13:52:25 CET 2011


Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
Branch: set-strategies
Changeset: r49257:cdcdf681bb20
Date: 2011-10-19 16:38 +0200
http://bitbucket.org/pypy/pypy/changeset/cdcdf681bb20/

Log:	no need to check since w_other is always a set here

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
@@ -502,9 +502,6 @@
         return self.erase(result_dict)
 
     def _difference_base(self, w_set, w_other):
-        if not isinstance(w_other, W_BaseSetObject):
-            w_other = w_set._newobj(self.space, w_other)
-
         if self is w_other.strategy:
             strategy = w_set.strategy
             storage = self._difference_unwrapped(w_set, w_other)


More information about the pypy-commit mailing list