News for hackers. Stuff that matters.
Re:PEP 572: Python assignment expressions has been accepted by saltcured on Tuesday July 03, 2018 @01:08PM (#17451883)
Does syntactic sugar have to be that strictly limited? If we are allowed to manipulate the statement block containing the sugared expression, we could define a trivial helper function which performs the 'nonlocal' side-effect and returns the value. Then, replace the "x := y" with "helper(y)".

There are no comments on this comment yet.