Why prefer != over <> for Python 3.0?

Torsten Bronger bronger at physik.rwth-aachen.de
Sun Mar 30 06:40:03 EDT 2008


Hallöchen!

Bjoern Schliessmann writes:

> Lie wrote:
>
>> Ah yes, that is also used (I completely forgot about that one, my
>> math's aren't that sharp anymore) and I think it's used more
>> frequently than ><. 
>
> Where did you read that (I mean, which country)? I've never seen
> this sign in any german or english book on
> mathematics/physics/engineering I saw.

Maybe he means "≷".

>> but my argument was that no math book use != or <> (except in
>> math for programmers).
>
> That's true. Personally, I don't ever use "a!=b" in favor of "not
> a==b".

As a side note, I've always found == rather ugly.  I'd prefer to
have = for both purposes.  The constructs that wouldn't work anymore
are rare as far as I can see (and possibly there are even
workarounds).

Tschö,
Torsten.

-- 
Torsten Bronger, aquisgrana, europa vetus
                                      Jabber ID: bronger at jabber.org
               (See http://ime.webhop.org for further contact info.)



More information about the Python-list mailing list