Nick Coghlan <ncogh...@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 _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com