[Python-3000] Sky pie: a "var" keyword
Nick Coghlan
ncoghlan at gmail.com
Wed Oct 11 10:47:20 CEST 2006
Neil Toronto wrote:
> From what I can see, you could object to *every* keyword on the grounds
> that the name is rebound in the innermost lexical scope: nonlocal (it's
> not, it has a local binding), outer (it's really inner), and external
> (nope, it's internal) all have this problem.
The specific problem with 'outer' is the potential confusion between 'an outer
scope' and 'the outermost scope'.
The other two terms don't have the same problem - it is fairly clear with
either term that the author is merely saying something about where the
variable *isn't* (i.e. not local to this function), rather than something
about where it actually is.
Regards,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-3000
mailing list