Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 5c22a09

Browse files
committed
make __eq__ function clearer
1 parent 4597564 commit 5c22a09

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sage/coding/kasami_codes.pyx

+3-1
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,11 @@ class KasamiCode(AbstractLinearCode):
241241
sage: C1.__eq__(C2)
242242
True
243243
"""
244+
# Check that s, t, extended values of both
245+
# objects are the same
244246
return isinstance(other, KasamiCode) \
245247
and self.parameters() == other.parameters() \
246-
and self.length() == other.length()
248+
and self._extended == other._extended
247249

248250
def _repr_(self):
249251
r"""

0 commit comments

Comments
 (0)