Anonymous Bastard wrote:
> In Python, declaring a variable using the global statement automatically
> makes it available in all subsequent scopes.
>
> But to me, it makes more sense to use the global statement to 'import' a
> variable from the global scope into the current scope.

My understanding is that this is exactly what the 'nonlocal' keyword
in Python 3.0 provides.

http://www.python.org/dev/peps/pep-3104/
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to