Why I need to declare import as global in function

Tim N. van der Leeuw tim.leeuwvander at nl.unisys.com
Mon Nov 28 09:12:54 EST 2005


Sounds like something, either in your program, in another lib you
imported, or perhaps some extension you recently installed (and which
automatically starts), overrides 'import' (replaces it with it's own
version) -- and forgets to add the imported modules properly to the
globlals?
Or something, some option, that perhaps changes the way that Python
recognizes globals?

If you declare another global variable, then try to use it in your
function, then what's the result?

What Python version do you use?

cheers,

--Tim




More information about the Python-list mailing list