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~