What is considered an "advanced" topic in Python?

BartC bc at freeuk.com
Mon Jun 1 11:17:42 EDT 2015


On 01/06/2015 14:52, Chris Angelico wrote:
 > It's
> like the eternal debate about assignment and whether "x = x + 1" is
> nonsense, with advocates preferring "x := x + 1" as being somehow
> fundamentally different. It isn't. It's just a notational change, and
> not even a huge one. (Though I do see the line of argument that it
> should be "x <- x + 1" or something else that looks like an arro'w.)

'x <- x + 1' already means something as an expression (whether x is less 
than (-x+1). 'x <= x + 1' has the same problem.

But I have used "=>" before,  for left-to-right assignment. (Mostly I 
use ":=")

-- 
Bartc





More information about the Python-list mailing list