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

Greg Ewing greg.ewing at canterbury.ac.nz
Mon May 14 10:00:09 EDT 2018


Tim Peters wrote:

>     total = 0
>     progressive_sums = [total := total + value for value in data]

I'm skeptical that it's a good idea to encourage this
kind of thing in the first place.

-- 
Greg


More information about the Python-ideas mailing list