[Python-Dev] Re: closure semantics
Guido van Rossum
guido at python.org
Thu Oct 23 20:11:36 EDT 2003
[Tim Delane]y
> Going on the principle of least surprise, I have to say that I think
> explicitly naming the scope in which a variable is to be used is the
> best approach.
[...]
> 'global x in func1' is also a *lot* easier to explain.
>
> I think these two points should weigh heavily in any decision. I
> think the need to rename the target scope is of lesser importance.
I have to concur. EIBTI.
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list