Nested scopes: why is it weird?
Neil Schemenauer
nas at python.ca
Fri Sep 7 14:56:08 EDT 2001
Scott Long wrote:
> In this spirit, why not place variables into scopes dynamically as well?
> Instead of having the separate LOAD_FAST and LOAD_GLOBAL why not just
> LOAD, and the first LOAD executed is what finally scopes the name?
> Before raising an objection, read my other comments below (and feel free
> to object at that point).
It would slow the interpreter down a lot. Also, I think it makes
programs harder to maintain. Static scoping is good.
Neil
More information about the Python-list
mailing list