Is the behavior expected?
bearophileHUGS at lycos.com
bearophileHUGS at lycos.com
Wed Nov 26 08:28:32 EST 2008
Alphones:
> it is a little deferent from other script language.
See also here:
http://en.wikipedia.org/wiki/Dynamic_scope#Dynamic_scoping
Python doesn't have such automatic closures, probably for performance
reasons and/or maybe to keep its C implementation simpler (maybe other
people here can give you an explanation of this, I too am curious).
Bye,
bearophile
More information about the Python-list
mailing list