[Tutor] Problems 'reloading'/'reimporting' module

alan.gauld@bt.com alan.gauld@bt.com
Mon Feb 10 05:49:04 2003


> In Linux Konsole if I make changes to code and
> do 
>   from tlib import *   # second time
> changes are not reflected.

Yet another reason not to use 

from X import *

If you just do 

import tlib

then change tlib and do

reload(tlib)

it should all work.

Alan G.