Kaydet (Commit) b8940393 authored tarafından Tim Peters's avatar Tim Peters

Gave __sub__/difference a factor of 2-5 speed boost.

üst 334b4a5c
......@@ -223,9 +223,10 @@ class BaseSet(object):
return NotImplemented
result = self.__class__()
data = result._data
otherdata = other._data
value = True
for elt in self:
if elt not in other:
if elt not in otherdata:
data[elt] = value
return result
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment