[Python-Dev] Re: Dynamic nested scopes
Moshe Zadka <email@example.com>
Thu, 2 Nov 2000 17:26:20 +0200 (IST)
On Wed, 1 Nov 2000, Guido van Rossum wrote:
> > Dynamic nested scopes is another topic... those are *very*
> > useful; especially when it comes to avoiding global variables
> > and implementing programs which work using control objects
> > instead of global function calls.
> Marc-Andre, what are Dynamic nested scopes?
If MAL means dynamic scoping (which I understood he does), then this
when looking for a variable "foo", you first search for it in the local
namespace. If not there, the *caller's* namespace, and so on. In the
end, the caller is the __main__ module, and if not found there, it is
Moshe Zadka <firstname.lastname@example.org> -- 95855124