Why I need to declare import as global in function

Duncan Booth duncan.booth at invalid.invalid
Tue Nov 29 07:35:04 EST 2005


 wrote:

> 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