Why I need to declare import as global in function

Duncan Booth duncan.booth at invalid.invalid
Tue Nov 29 13:35:04 CET 2005


> I have remarq that this problem is raised when I execute code in an
> imported module (during importation)
> I think I will be able to isolate it and have a simple sample soon ....
Meanwhile, try adding:

   import math

to the top of TU_05_tools.py.

More information about the Python-list mailing list