<> and !=

Don Arnold dlarnold at west.com
Wed Jul 16 22:02:15 CEST 2003


Duncan Booth <duncan at NOSPAMrcp.co.uk> wrote in message news:<Xns93BA9BB2977B8duncanrcpcouk at 127.0.0.1>...
> hokiegal99 <hokiegal99 at hotmail.com> wrote in 
> news:3F155B6D.8000205 at hotmail.com:
> 
> > Thank you, that is what I thought. What's the reason for having two 
> > symbols mean the same thing?
> > 
> Originally Python only had '<>' for the not-equal comparison. Version 0.9.3 
> added a bunch of C like syntax, such as C's shifting and masking operators. 
> It also added C style '==' and '!=' comparison operators. The original '<>' 
> remains valid for backwards compatibility.

Out of curiosity, what was the original operator for the equality comparison?




More information about the Python-list mailing list