
July 5, 2020
9:13 p.m.
Terry J. Reedy <tjreedy@udel.edu> added the comment: At any one time, the language and interpreter sees the local scopes of enclosing functions as collectively 'nonlocal' for the purpose of accessing and rebinding. If there are bindings of a name 'x' in multiple enclosing local scopes, the binding for 'x' in the synthesized 'nonlocal' is the innermost one. ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue26205> _______________________________________