On Thu, Mar 31, 2011 at 11:11 AM, Raymond Hettinger <pyt...@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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to