Files
python-uncompyle6/test/simple_source/bug33/05_nonlocal.py
2018-03-19 07:57:25 -04:00

13 lines
230 B
Python

# From Python 3.6 functools.py
# Bug was in detecting "nonlocal" access
def not_bug():
cache_token = 5
def register():
nonlocal cache_token
return cache_token == 5
return register()
assert not_bug()