Why prefer != over <> for Python 3.0?

Dan Bishop danb_83 at yahoo.com
Sun Mar 30 15:28:20 EDT 2008


On Mar 29, 12:34 pm, Lie <Lie.1... at gmail.com> wrote:
> On Mar 29, 5:55 pm, kwitt... at telenet.be wrote:
>
> > I don't know if this is the right place to discuss the death of <> in
> > Python 3.0, or if there have been any meaningful discussions posted
> > before (hard to search google with '<>' keyword), but why would anyone
> > prefer the comparison operator != over <>???
>
...snip...
>
> You're forcing your argument too much, both != and <> are NOT standard
> mathematics operators -- the standard not-equal operator is >< -- and
> I can assure you that both != and <> won't be comprehensible to non-
> programmers.

A lot of non-programmers use Microsoft Excel, which uses <> for the
Not Equal operator.

FWIW, the non-programmers on one forum I post on tend to use =/= .



More information about the Python-list mailing list