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   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to