[pypy-commit] pypy set-strategies: this is done with not_contain_equal_elements
l.diekmann
noreply at buildbot.pypy.org
Thu Nov 10 13:52:30 CET 2011
Author: Lukas Diekmann <lukas.diekmann at uni-duesseldorf.de>
Branch: set-strategies
Changeset: r49261:926bd0d9d481
Date: 2011-11-03 15:44 +0100
http://bitbucket.org/pypy/pypy/changeset/926bd0d9d481/
Log: this is done with not_contain_equal_elements
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
@@ -515,13 +515,11 @@
return storage, strategy
def difference(self, w_set, w_other):
- #XXX return clone for ANY with Empty (and later different strategies)
storage, strategy = self._difference_base(w_set, w_other)
w_newset = w_set.from_storage_and_strategy(storage, strategy)
return w_newset
def difference_update(self, w_set, w_other):
- #XXX do nothing for ANY with Empty
storage, strategy = self._difference_base(w_set, w_other)
w_set.strategy = strategy
w_set.sstorage = storage
More information about the pypy-commit
mailing list