learning-python question

Trent Mick trentm at activestate.com
Mon Jun 26 22:45:37 EDT 2000


On Mon, Jun 26, 2000 at 05:07:53PM -0700, Trent Mick wrote:
> This is because the global
> namespace is not searched when in a Python function.


Whoa. I was just plain wrong here. Sorry about that. Just pay attention to
Aahz Maruch and Walter Hofmann, who responded much more intelligently to your
question.

Using the 'global' keyword *is* the correct answer though. :)


shamedly yours,
Trent

-- 
Trent Mick
trentm at activestate.com




More information about the Python-list mailing list