Is this a valid use of 'import'?

Benjamin musiccomposition at gmail.com
Tue Jul 22 23:06:10 EDT 2008


On Jul 22, 12:26 pm, Terry Reedy <tjre... at udel.edu> wrote:
>
> *Python2 has a built-in reload function, but in 3.0 it is removed
> because it almost never did what people wanted or expected and thus lead
> to surprising bugs.  You can delete a module from sys.modules and
> re-import it, but the module object and those it created will not
> disappear as long as there are other references to them.

It's not gone. It's been moved to imp.




More information about the Python-list mailing list