Why I need to declare import as global in function

didier.doussaud at gmail.com didier.doussaud at gmail.com
Wed Nov 30 03:58:45 EST 2005


yes I have imported math in the file I want to use it. But the imported
module "math" is not visible in function without a global instruction.

But the solutions already proposed seems to work file for my sample
program. I will try on my project soon :)




More information about the Python-list mailing list