On Sat, May 2, 2020 at 10:52 PM Dominik Vilsmeier <dominik.vilsme...@gmx.de>
wrote:

> `frozenset` and `set` make a counterexample:
>
> >>> frozenset({1}) == {1}
> True
>

Nice catch! That's really interesting. Is there reasoning behind
`frozenset({1}) == {1}` but `[1] != (1,)`, or is it just an accident of
history? Isn't a tuple essentially just a frozenlist? I know the intended
semantics of tuples and lists tend to be different, but I'm not sure that's
relevant.
_______________________________________________
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/XQKOIUMOZ7JUHD2LN5FMBYRG4QB2FO45/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to