Why '==' ??

John Roth newsgroups at jhrothjr.com
Tue Mar 30 08:44:28 EST 2004


"Fuzzyman" <michael at foord.net> wrote in message
news:8089854e.0403300510.1971c24 at posting.google.com...
> I may be about to get flamed as some heretic against the ancient
> way..... but if assignment in conditional statements isn't
> possible.... why do we need to use '==' instead of just '=' for if and
> while statements ?

I believe the earliest versions of Python did use the single equal
sign for comparisons. I don't know why Guido changed it, but
it might be in order to keep his options open.

John Roth
>
> Regards,
>
> Fuzzy
> (recent python addict)





More information about the Python-list mailing list