globalrev <[EMAIL PROTECTED]> writes:

> i cant figure outif python has lexical or general scope.
>
> it seems functions have lexical scope but with some restrictions and
> some non-function scopes are dynamic?

I can't think of any instance of dynamic scoping in Python.  Can you
give an example of what you are thinking of?

AFAIK, Python has lexical scoping, with the restriction that
non-global non-local names cannot be rebound.

-- 
Arnaud
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to