<> and !=
Tim Peters
tim.one at comcast.net
Wed Jul 16 10:52:56 EDT 2003
[hokiegal99, on <> vs !=]
> What's the reason for having two symbols mean the same thing?
Hysterical raisins. Python originally used only "<>". C programmers whined
about that, so Python added "!=" too. But Python code already used "<>", so
it was too late to get rid of that one. "<>" was deprecated instead.
That's a computer science term usually meaning it's like a mentally
disturbed uncle: we won't kill it, but we won't talk about it either
<wink>. The good news is that Guido has become more hardened to whining
over the centures since then.
More information about the Python-list
mailing list