DEBSOURCES
Skip Quicknav
sources / python-friendly-traceback / 0.7.62%2Bgit20240811.d7dbff6-1.1 / tests / syntax / assign_name_before_nonlocal_2.py
123456789
"""Should raise SyntaxError: name 's' is assigned to before nonlocal declaration """ def f(): s = 1 def g(): s = 2 nonlocal s