fixed bug in vector equals comparison
This commit is contained in:
parent
d5cd0de7a6
commit
ed14f31b63
|
@ -60,13 +60,13 @@ class Vector(list):
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
for sv, ov in zip(self, other):
|
for sv, ov in zip(self, other):
|
||||||
if value != other[ii]:
|
if sv != ov:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def __ne__(self, other):
|
def __ne__(self, other):
|
||||||
for sv, ov in zip(self, other):
|
for sv, ov in zip(self, other):
|
||||||
if value == other[ii]:
|
if sv == ov:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue