Gonçalo Rodrigues wrote:[color=blue]
> On Wed, 16 Jul 2003 08:57:33 -0400, hokiegal99
> <hokiegal99@hot mail.com> wrote:
>
>[color=green]
>>that sould be:
>>
>>if newfile <> oldfile
>>if newfile != oldfile[/color]
>
>
> No difference whatsoever. I believe != is prefered (style guide?)
> though -- and that's the one I always use.
>
> With my best regards,
> G. Rodrigues[/color]
Thank you, that is what I thought. What's the reason for having two
symbols mean the same thing?
hokiegal99 <hokiegal99@hot mail.com> wrote in
news:3F155B6D.8 000205@hotmail. com:
[color=blue]
> Thank you, that is what I thought. What's the reason for having two
> symbols mean the same thing?
>[/color]
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.
--
Duncan Booth [email protected] k
int month(char *p){return(1248 64/((p[0]+p[1]-p[2]&0x1f)+1)%12 )["\5\x8\3"
"\6\7\xb\1\x9\x a\2\0\4"];} // Who said my code was obscure?
Comment