re-importing modules

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Apr 30 21:44:47 EDT 2007


En Mon, 30 Apr 2007 21:32:20 -0300, John Nagle <nagle at animats.com>  
escribió:

> 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.

Maybe all the drawbacks should be clearly stated instead, telling that  
it's not a magic wand as someone could think.

-- 
Gabriel Genellina




More information about the Python-list mailing list