25 Oct
2021
25 Oct
'21
11:02 p.m.
On 10/25/21 11:50 AM, Erik Demaine wrote:
Here's another example where it matters whether the default expressions are computed within their own scope:
``` def f(x := (y := 5)): print(x) # 5 print(y) # 5??? f() ```
That should definitely be a SyntaxError. -- ~Ethan~