from/import and reload()

Fredrik Lundh fredrik at pythonware.com
Thu Feb 8 01:42:42 EST 2001


Daniel Klein wrote:
> Is there a way to reload a module in interactive mode if the module was
> originally loaded using
>
> from module import *

import module # to get a module object
reload(module) # to reload the module
from module import * # to reimport all public names

Cheers /F





More information about the Python-list mailing list