On Sat, May 2, 2020 at 8:38 PM Ahmed Amr <[email protected]> wrote:
> I see there are ways to compare them item-wise, I'm suggesting to bake > that functionality inside the core implementation of such indexed > structures. > I'm sure there are times when I would also like this, and others too. But it would be a disastrous break in backwards compatibility, which is why it has 0% chance of happening. > Also those solutions are direct with tuples and lists, but it wouldn't be > as direct with arrays-lists/tuples comparisons for example. > It should be. If x and y are two sequences with the same length and the same values at the same indexes, then list(x) == list(y) follows very quickly.
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/4SRXGSWDJHRLICHBJLLCDS74AR5JGHQH/ Code of Conduct: http://python.org/psf/codeofconduct/
