On Sat, 9 May 2020 03:39:53 +1000 Steven D'Aprano <st...@pearwood.info> wrote:
> This proposal is a narrow one: its the same as list or tuple equality, > but duck-typed so that the container type doesn't matter. Okay. Good. "Container," however, is a dangerous word in this context. According to https://docs.python.org/3/library/stdtypes.html, lots of things are "conrtainers." Can they all be sequence-equal to each other? Of particular note might be sets, which don't have an inherent order. I am in no way proposing that sequence-equal be extended to cover sets, which by definition can't really be a sequence. _______________________________________________ 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/XW5C3EUZZE22T42NLVK4KUUZPGFSZWO2/ Code of Conduct: http://python.org/psf/codeofconduct/