= vs. == in Py3k
Tim Rowe
digitig at cix.co.uk
Wed Jun 14 17:31:00 EDT 2000
In article <F2005.859$Qf6.33080 at nuq-read.news.verio.net>, lk at veriomail.com
(Lawrence Kesteloot) wrote:
>
> If one of the goals of Python 3000 is to make it easy for new
> programmers to learn, how about removing the distinction
> between = and ==? The only kinds of examples I can think of
<snip>
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".
More information about the Python-list
mailing list