nested scopes

Rainer Deyke root at rainerdeyke.com
Tue Feb 6 16:45:39 EST 2001


"Michael Hudson" <mwh21 at cam.ac.uk> wrote in message
news:m3lmrj35z6.fsf at atrus.jesus.cam.ac.uk...
> "Rainer Deyke" <root at rainerdeyke.com> writes:
> > Some Python functions (including 'globals' and 'locals') have behavior
> > similar to that of dynamic scoping.
>
> How so?  Note I'm using "dynamic scope" in a pretty technical sense
> here - "indefinite scope and dynamic extent".  Python variables have
> definite scope and dynamic extent (although the objects they point to
> have indefinite extent).

I am referring to the fact that these functions access the namespace of the
calling function.


--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games           -           http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the Python-list mailing list