= vs. == in Py3k

Tim Rowe digitig at cix.co.uk
Fri Jun 16 19:34:00 EDT 2000


In article <39480966.C69FFDB7 at prescod.net>, paul at prescod.net (Paul 
Prescod) wrote:

> Tim Rowe wrote:
> > 
> > The construct
> >         a = a + 1
> > can confuse newbies too, provoking a response along the lines of "not 
> > for
> > finite 'a' it doesn't!"
> > 
> > I reckon that's sufficient ground for a distinction between 
> > assignment and
> > equality. '=' possibly isn't the best choice for assignment, though I 
> > much
> > prefer it to "ADD 1 TO a GIVING a".
> 
> How about:
> 
> a <- a+1
> 
> pronounced "a gets a plus 1"

Yes, I'd come across that, and have forgotten where. Like you, I see no 
reason for a change -- none that is worth the hassle, anyway.



More information about the Python-list mailing list