What does the Python nonlocal statement do (in Python 3.0 and later)?
nonlocal
There\'s no documentation on the official Python website and help(\"nonloca
help(\"nonloca
In short, it lets you assign values to a variable in an outer (but non-global) scope. See PEP 3104 for all the gory details.