delete namespaces

Raymond Hettinger python at rcn.com
Wed Mar 30 20:11:02 EDT 2011


[monkeys paw]
> > 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.

[Terry Reedy]
> The best thing, if possible, is to restart the program.
> If you develop banner.py with adequate tests, you will want to restart
> the test anyway, and you should not need to modify much thereafter.

This is excellent advice.

You're much better-off starting fresh each time.


Raymond




More information about the Python-list mailing list