Using non-ascii symbols
steve at REMOVETHIScyber.com.au
Wed Jan 25 18:23:11 EST 2006
On Wed, 25 Jan 2006 11:14:06 -0500, Peter Hansen wrote:
> I think "not equal", at least the way our brains handle it in general,
> is not equivalent to "less than or greater than".
> That is, I think the concept "not equal" is less than or greater than
> the concept "less than or greater than". <wink>
For objects that don't have total ordering, "not equal" != is not the
same as "less than or greater than" <>.
The two obvious examples are complex numbers, where C1 != C2 can be
evaluated, but C1 <> C2 is not defined, and NaNs, where NaN != NaN is
always true but NaN <> NaN is undefined.
More information about the Python-list