Thread: Import a Module
View Single Post
Old Dec 28th, 2006, 12:52 PM   #2
BinarySurfer
Programmer
 
BinarySurfer's Avatar
 
Join Date: Dec 2006
Posts: 53
Rep Power: 0 BinarySurfer is an unknown quantity at this point
I've done it before without any problems, though I would avoid importing the randomizer in a function. The module would be loaded at the beginning of the function (or where ever) and dropped at the end, so it's I think it's okey. I don't recommend doing it that way because it hurts performance if that function is used often. I would do it in a function that's not used often, otherwise I would import it at the beginning of the code like usual.
BinarySurfer is offline   Reply With Quote