1. trampgeek
  2. pypy-sandbox-4-pycode

Commits

Lukas Diekmann  committed 926bd0d

this is done with not_contain_equal_elements

  • Participants
  • Parent commits d62d426
  • Branches set-strategies

Comments (0)

Files changed (1)

File pypy/objspace/std/setobject.py

View file
         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