nested scopes
Rainer Deyke
root at rainerdeyke.com
Sat Feb 3 12:24:51 EST 2001
"Tim Peters" <tim.one at home.com> wrote in message
news:mailman.981181863.15223.python-list at python.org...
> WRT scopes, the determination of which names are local is entirely done at
> compile-time. That wasn't always true, but has been true since version
> 0.9.9, and was the single biggest speedup in Python's history. The
> determination of which names are local is still done at compile-time in
the
> presence of "import *" and "exec", but then the results can't be trusted,
> and the compiler generates different code that does all sorts of crap
under
> the covers to give "the expected" results -- most of the time. I doubt
that
> crap will get extended to live nice with deeply nested scopes, though.
"Most of the time" is significant here. There are at least two
inconsistencies in functions with 'import *' as of 2.0. Can you say "source
of subtle bugs"?
--
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