Skip to content

Commit 5a2e438

Browse files
committed
-
1 parent 5036664 commit 5a2e438

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

source_py3/python_toolbox/cute_iter_tools.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,11 @@ def are_equal(*sequences, easy_types=(sequence_tools.CuteRange,)):
404404
405405
This tries to make a cheap comparison between the sequences if possible,
406406
but if not, it goes over the sequences in parallel item-by-item and checks
407-
whether the items are all equal.
407+
whether the items are all equal. A cheap comparison is attempted only if
408+
the sequences are all of the same type, and that type is in `easy_types`.
409+
(It's important to restrict `easy_types` only to types where equality
410+
between the sequences is the same as equality between every item in the
411+
sequences.)
408412
'''
409413
from python_toolbox import logic_tools
410414
sequence_types = set(map(type, sequences))

0 commit comments

Comments
 (0)