Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #2270
| References | <UtydnQbv7-6IGQ_QnZ2dnUVZ_hWdnZ2d@insightbb.com> <mailman.7.1301461050.2990.python-list@python.org> <8ee61e93-6260-43dc-bc3c-aaadecc1fdb0@f31g2000pri.googlegroups.com> |
|---|---|
| Date | 2011-03-31 14:06 +1100 |
| Subject | Re: delete namespaces |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.25.1301540817.2990.python-list@python.org> (permalink) |
On Thu, Mar 31, 2011 at 11:11 AM, Raymond Hettinger <python@rcn.com> wrote: > [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. Each language should be used for its strengths, not its weaknesses :) If you're using Python, keep it light and simple and then just restart the program. If you want to reload stuff without restarting, grab Pike. There's no point fighting your language! ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
delete namespaces monkeys paw <monkey@joemoney.net> - 2011-03-29 21:14 -0400
Re: delete namespaces Raymond Hettinger <python@rcn.com> - 2011-03-29 18:32 -0700
Re: delete namespaces Tim Chase <python.list@tim.thechases.com> - 2011-03-29 20:41 -0500
Re: delete namespaces Terry Reedy <tjreedy@udel.edu> - 2011-03-30 00:57 -0400
Re: delete namespaces Raymond Hettinger <python@rcn.com> - 2011-03-30 17:11 -0700
Re: delete namespaces Chris Angelico <rosuav@gmail.com> - 2011-03-31 14:06 +1100
Re: delete namespaces Jean-Michel Pichavant <jeanmichel@sequans.com> - 2011-03-30 11:10 +0200
Re: delete namespaces Terry Reedy <tjreedy@udel.edu> - 2011-03-30 15:03 -0400
Re: delete namespaces Tim Golden <mail@timgolden.me.uk> - 2011-03-30 20:08 +0100
Re: delete namespaces Ritesh Nadhani <riteshn@gmail.com> - 2011-03-30 21:22 -0700
Re: delete namespaces rusi <rustompmody@gmail.com> - 2011-03-30 22:11 -0700
csiph-web