<> and !=

hokiegal99 hokiegal99 at hotmail.com
Wed Jul 16 11:18:09 EDT 2003


Duncan Booth wrote:
> 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.
> 

That makes sense. Thanks for the info!!





More information about the Python-list mailing list