Debian Codegraph @

tests/syntax/assign_name_before_nonlocal_1.py

raw symbols SCIP
1 """Should raise SyntaxError: name 'q' is used prior to nonlocal declaration """
2
3
4 def f():
5 pp = 0
6 qq = 1
7
8
9 def g():
10 print(qq)
11 nonlocal pp, qq