Restore the previous definition of __eq__ for d_values.
There was a reason I did it by modifying a list!
This commit is contained in:
parent
0e97bb856c
commit
33498634af
|
@ -247,9 +247,13 @@ I'm using pseudo-code to specify the semantics::
|
|||
# XXX Sometimes this could be optimized, but these are the
|
||||
# semantics: we can't depend on the values to be hashable
|
||||
# or comparable.
|
||||
olist = list(other)
|
||||
for x in self:
|
||||
if not o in other:
|
||||
try:
|
||||
olist.remove(x)
|
||||
except ValueError:
|
||||
return False
|
||||
assert olist == []
|
||||
return True
|
||||
|
||||
def __ne__(self, other):
|
||||
|
|
Loading…
Reference in New Issue