Steven D'Aprano wrote:
Currently that assertion fails. Should it? Putting aside the convenience of "do nothing, just inherit the object.__eq__ behaviour" do you think that the current behaviour is *correct*?

What I'm getting from this thread is that there are a variety of
possible behaviours for dict values comparison, any of which could
be considered "correct" depending on what the programmer is trying
to do.

I know there are good reasons for the guideline that equality
comparisons should never raise exceptions, but this seems like a
situation where Python really should slap you on the ear and
make you specify exactly what you want.

--
Greg
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/WR2JGENQBL3EQ6ZUUFF2BPMMFTFDEH3R/

Reply via email to