On Fri, May 08, 2020 at 07:52:10PM +0200, Alex Hall wrote: > Would the proposal come with a new magic dunder method which can be > overridden, or would it be like `is`?
An excellent question! I don't think there needs to be a dunder. Calling this "sequence-equal": Two sequences are "sequence-equal" if: - they have the same length; - for each pair of corresponding elements, the two elements are either equal, or sequence-equal. The implementation may need to check for cycles (as ordinary equality does). It may also shortcut some equality tests by doing identity tests, as ordinary container equality does. -- Steven _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/ERKVW5DMSWOPBVLU5OCLG52GT72GTB4B/ Code of Conduct: http://python.org/psf/codeofconduct/