reloading my own modules

Lowell Kirsh lkirsh at
Wed Jun 8 06:11:25 CEST 2005


Skip Montanaro wrote:
> Also, since it's clear you have already imported dbtest and util, there's no
> need to check in sys.modules:
>     import dbtest, util
>     reload(dbtest)
>     reload(util)

Won't this load the modules twice on the first run? I only want to load 
the modules once each time the script is run.

More information about the Python-list mailing list