When is min(a, b) != min(b, a)?
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Fri Jan 25 04:38:22 EST 2008
On Fri, 25 Jan 2008 07:57:38 +0000, Pete Forman wrote:
> Mark Dickinson <dickinsm at gmail.com> writes:
>
> > Any change to Python that made == and != checks involving NaNs raise
> > an exception would have to consider the consequences for set, dict,
> > list membership testing.
> > […]
> > and if Python had separate operators for these two purposes it
> > wouldn't be Python any more.
>
> There are separate Python operators, "==" and "is".
So what? ``==`` is used for both ``==`` and set/dict/list membership
testing and "nested comparison" of those structures. There is no ``is``
involved.
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list