[Python-Dev] [poll] New name for __builtins__

Nick Coghlan ncoghlan at gmail.com
Thu Nov 29 14:16:46 CET 2007


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


More information about the Python-Dev mailing list