re-importing modules
Hamilton, William
whamil1 at entergy.com
Tue May 1 08:18:12 EDT 2007
> -----Original Message-----
> From: python-list-bounces+whamil1=entergy.com at python.org
[mailto:python-
> list-bounces+whamil1=entergy.com at python.org] On Behalf Of John Nagle
> Sent: Monday, April 30, 2007 7:32 PM
> To: python-list at python.org
> Subject: Re: re-importing modules
>
> kyosohma at gmail.com wrote:
>
> >>In addition to the warning that reload() does not recursively reload
> >>modules that the reloaded module depends on, be warned that
reloading a
> >>module does not magically affect any functions or objects from the
old
> >>version that you may be holding on to.
>
> Maybe reloading modules should be deprecated. The semantics
> are awful, and it interferes with higher-performance implementations.
>
I'd rather it weren't, personally. I'm using Python with a third-party
application that provides an interactive prompt. Removing reload()
would mean spending a good three minutes waiting for the application to
restart any time I make the slightest change in a module supporting that
application.
---
-Bill Hamilton
More information about the Python-list
mailing list