What is the cleanest way to for a module to access objects from the script that imports it?

Farshid Lashkari no at spam.com
Sat Oct 28 00:56:51 CEST 2006

noamsml at gmail.com wrote:
> Wouldn't importing and re-importing the same modules cause considerable
> resource bulk? Or does python cache that stuff?

If a module is already imported, then the import statement just uses the 
cached module. However, you can force a full reload of the module using 
the following syntax:



More information about the Python-list mailing list