<> and DeprecationWarning
mertz at gnosis.cx
Tue Oct 21 19:54:39 CEST 2003
Gerrit Holl <gerrit at nl.linux.org> wrote previously:
|The problem to me is that it does not feel logical for non numeric types.
|For me, x <> y reads as "x < y or x > y", which is not the same thing.
This still makes sense to me in a kind of metaphorical way, even for
non-comparable types. Of course, I'm on record as disliking things that
don't compare successfully (an abomination introduced relatively
recently), so I guess that influences it.
The problem, to my mind, with '!=' is the series:
x += y
x -= y
x %= y
x &= y
x != y
One of these things is not like the others. REALLY, really not like the
others (the first four are assignment statements, the last an
Nonetheless, I'm with Just here. Despite being the worse spelling, only
having '!=' is better than having two alternatives. And when they pry
the '<>' from my cold, dead hands, I'll stop using it in the next life
(where the angels program in Python 3000).
mertz@ _/_/_/_/_/_/_/ THIS MESSAGE WAS BROUGHT TO YOU BY:_/_/_/_/ v i
gnosis _/_/ Postmodern Enterprises _/_/ s r
.cx _/_/ MAKERS OF CHAOS.... _/_/ i u
_/_/_/_/_/ LOOK FOR IT IN A NEIGHBORHOOD NEAR YOU_/_/_/_/_/ g s
More information about the Python-list