delete namespaces
Raymond Hettinger
python at rcn.com
Tue Mar 29 21:32:34 EDT 2011
On Mar 29, 6:14 pm, monkeys paw <mon... at joemoney.net> wrote:
> How do i delete a module namespace once it has been imported?
. . .
> Then i make a modification to banner.py. When i import it again,
> the new changes are not reflected. Is there a global variable i can
> modify?
In Python2.x, you can use the reload() function:
Help on built-in function reload in module __builtin__:
reload(...)
reload(module) -> module
Reload the module. The module must have been successfully
imported before.
Raymond
More information about the Python-list
mailing list