A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-July/135482.html below:

[Python-Dev] == on object tests identity in 3.x

[Python-Dev] == on object tests identity in 3.x - list delegation to members? [Python-Dev] == on object tests identity in 3.x - list delegation to members?Marko Rauhamaa marko at pacujo.net
Sun Jul 13 21:54:02 CEST 2014
Nick Coghlan <ncoghlan at gmail.com>:

> Right, it's not a mere optimisation - it's the only way to get
> containers to behave sensibly. Otherwise we'd end up with nonsense
> like:
>
>>>> x = float("nan")
>>>> x in [x]
> False

Why is that nonsense? I mean, why is it any more nonsense than

   >>> x == x
   False

Anyway, personally, I'm perfectly "happy" to live with the choices of
past generations, regardless of whether they were good or not. What you
absolutely don't want to do is "correct" the choices of past generations.


Marko
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4