Piet van Oostrum wrote: > There is no big difference I think. Only Python doesn't have syntax for the > former. Older versions of Python didn't even have nested scopes.
arbitrarily nested scopes, at least. the old local/global/builtin approach (the LGB rule) is of course a kind of nesting; the new thing is support for "enclosing scopes" in Python 2.1/2.2 (the LEGB rule). for some background, see: http://www.python.org/dev/peps/pep-0227/ the section "Rebinding names in enclosing scopes" discusses the 2.X- specific thinking; this may be revised in 3.0 (see current python-dev discussions). </F> -- http://mail.python.org/mailman/listinfo/python-list