[Python-ideas] PEP 572: Assignment Expressions (post #4)

Steven D'Aprano steve at pearwood.info
Fri Apr 13 07:17:00 EDT 2018


On Thu, Apr 12, 2018 at 07:28:28AM +1000, Chris Angelico wrote:

> Fair enough. Also adding that chained assignment expressions should
> generally be avoided.

So long as its not a blanket prohibition, I'm good with that.

Also, something like this:

    spam := 2*(eggs := expression) + 1

should not be considered a chained assignment.



-- 
Steve


More information about the Python-ideas mailing list