Vedran Čačić <ved...@gmail.com> added the comment:

How is that different from saying that "At any one time, the language and 
interpreter sees all the scopes as one scope for the purpose of accessing and 
rebinding."? Any ChainMap presents itself as a dictionary to the outside. That 
doesn't mean it doesn't have an internal structure.

Yes, nonlocal picks the innermost one because of its semantics, but it still 
needs to search through the scopes in order to know which one to pick, right?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue26205>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to