<> vs != was Re: A Suggestion for Python Colon Syntax

David C. Ullrich ullrich at math.okstate.edu
Sun Dec 24 14:28:55 EST 2000


In article <OR616.67063$x6.31192247 at news2.rdc2.tx.home.com>,
  "Rainer Deyke" <root at rainerdeyke.com> wrote:
> "Thomas Wouters" <thomas at xs4all.net> wrote in message
> news:mailman.977594956.22001.python-list at python.org...
> > On Sat, Dec 23, 2000 at 12:15:25AM -0500, Tim Peters wrote:
> >
> > > Best guess is that "<>" will go away in P3K.  I jokingly told
Guido it
> was
> > > clearly wrong for an inequality operator to look so symmetric, and
he
> forgot
> > > to laugh <wink>.
> >
> > Well, excuse me, but it's clearly wrong for an equality test
operator to
> > look so much like an augmented assignment statement ! I definately
prefer
> > '<>' myself, anyway, I just wish I could use it in C without turning
> towards
> > preprocessor macros :)
>
> I dislike <> because to me A <> B implies A > B or A < B.  This does
not
> logically apply to some data types where no ordering is defined.

Well to _me_ A!=B says that A is not only equal to B, A
is _emphatically_ equal to B, no doubt about it.

>  Of
course
> in Python, A <> B (and A != B) does imply A > B or A < B because of
the way
> comparison is implemented.
>
> --
> Rainer Deyke (root at rainerdeyke.com)
> Shareware computer games           -           http://rainerdeyke.com
> "In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor
>
>

--
Oh, dejanews lets you add a sig - that's useful...


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list