ASP and importing modules

Gordon McMillan gmcm at hypernet.com
Tue Mar 7 17:06:15 EST 2000


Kelly wrote:

> Modules under do not seem to be reloaded as new pages are re-requested.
> I suppose this is for performance reasons and it is easy enough to work
> around by throwing a reload(module) into the script but I was wondering
> is it a bug or a feature?

Feature. Put the current top level logic under a main(), and 
use module.main(). You'll save yourself a lot of import time.

- Gordon




More information about the Python-list mailing list