Why '==' ??
michael at foord.net
Tue Mar 30 15:10:13 CEST 2004
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 ?
It's possible there are places where the interpreter could fail to
understand it, but I haven't found them yet. If there *aren't* any
situations where one could be confused for the other... then it's not
needed and is annoying :-)
The same could equally well be true for the trailing ':' after def, if
Anyway - not withstanding a visit from the spanish inquisitionI'd be
interested to hear.....(And are the spanish inquisition likely to use
reasoning similar to the sort employed by those who advocate type
declarations and static languages)...
(recent python addict)
More information about the Python-list