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

Commit 9f16cef

Browse files
author
Matthias Koeppe
committed
Fix comments
1 parent ed7ddeb commit 9f16cef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/sets/cartesian_product.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -347,15 +347,15 @@ def __classcall_private__(cls, sets, category, flatten=False):
347347
def __eq__(self, other):
348348
if not any(isinstance(set, EnumeratedSetFromIterator) and set not in FiniteEnumeratedSets()
349349
for set in self._sets):
350-
# Use WithIdentityById
350+
# Use WithEqualityById
351351
return super().__eq__(other)
352352
# No flattening, hence we are equal if and only if our factors are equal
353353
return self.cartesian_factors() == other.cartesian_factors()
354354

355355
def __hash__(self):
356356
if not any(isinstance(set, EnumeratedSetFromIterator) and set not in FiniteEnumeratedSets()
357357
for set in self._sets):
358-
# Use WithIdentityById
358+
# Use WithEqualityById
359359
return super().__hash__()
360360
# No flattening, hence we are equal if and only if our factors are equal
361361
return hash(self.cartesian_factors())

0 commit comments

Comments
 (0)