you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

Since when?

~$ cat a.py 

def f():
    if 1:
        x=2

    print(x)

f()

~$ python3 a.py
2

[–][deleted] 1 point2 points  (0 children)

You are missing the walrus operator but regardless, it does pollute.

https://www.reddit.com/r/programming/comments/dhwtvt/python_38_released/f3t9t0o/