Implementation of the global statement
Greg Ewing
see_reply_address at something.invalid
Wed Nov 27 23:45:03 EST 2002
Mikael Olofsson wrote:
> Is that behaviour intended?
> Is it likely to stay that way?
Yes and yes. Consider that when you do
from A import f
you probably want f to still work properly
even if it calls other functions defined
in A or otherwise relies on things living
in A.
If it didn't work this way, you'd have
to not only import f but all the things
that f relied on as well!
--
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list