[Python-ideas] Inline assignments using "given" clauses

Greg Ewing greg.ewing at canterbury.ac.nz
Fri May 11 03:38:30 EDT 2018

Kirill Balunov wrote:
> While for those who 
> are familiar with Pascal, Icon and other languages that use this syntax, 
> this - `:=` looks natural.

As someone familiar with Pascal, I think the similarity to
the Pascal assignment operator is actually an argument
*against* it. Knowing what it means in Pascal is confusing,
because Pascal's ":=" is equivalent to Python's "=" (it's
strictly a statement, and can't be used in expressions).


More information about the Python-ideas mailing list