summaryrefslogtreecommitdiffstatshomepage
path: root/tests/bytecode/mp-tests/scope4.py
blob: 70968cdf3029ef63ea663e3e8abe3299f965cff2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# test scope

def f(x):
    global x42
    print(x, x42)
    x42 = x

x42 = 123
f(1)
print(x42)

x42 = 456
f(2)
print(x42)