You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
13 lines
230 B
Python
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()
|