Debian Codegraph @

tests/syntax/name_is_global_and_nonlocal.py

raw symbols SCIP
1 """Should raise SyntaxError: name 'xy' is nonlocal and global"""
2
3 xy = 1
4
5
6 def f():
7 global xy
8 nonlocal xy