Christian Heimes wrote: > I tend to agree that local, nonlocal, global and the-other-thingie are > more like the layers of an onion than a tree. It makes sense to me. The > name lookup starts at the local level and goes all the way out until it > reaches the universal level. Or does it go in until it reaches the core > of the onion? It's a matter of perspective. __universal__ or __core__ ? Function locals, module globals and program universals would make more sense to me - outer layers have a broader scope than inner layers. If we wanted to beat the metaphor to death we could even rename nonlocal to regional ;) Cheers, Nick. P.S. Just to be clear, I am definitely NOT suggesting that renaming nonlocal like that would be a good idea :) -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4