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):
|
||||
for sv, ov in zip(self, other):
|
||||
if value != other[ii]:
|
||||
if sv != ov:
|
||||
return False
|
||||
return True
|
||||
|
||||
def __ne__(self, other):
|
||||
for sv, ov in zip(self, other):
|
||||
if value == other[ii]:
|
||||
if sv == ov:
|
||||
return False
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in New Issue