[SciPy-user] Newbie and Old matlab user

Fernando Perez Fernando.Perez at colorado.edu
Thu Oct 13 10:39:13 CDT 2005

Alan G Isaac wrote:
> On Thu, 13 Oct 2005, Fernando Perez apparently wrote: 
>>Finally, the 'from s2 import *' idiom breaks all this, I think. You can try 
>>this, but I'm not sure it works (I think it doesn't): 
> The docs say:
>         If a module imports objects from another module 
>         using from  ... import ..., calling reload() for the 
>         other module does not redefine the objects imported 
>         from it -- one way around this is to re-execute the 
>         from statement, another is to use import and 
>         qualified names (module.name) instead.

Thanks, that's what I vaguely remembered.  One more reason not to use 'import 

> In any case, maybe the OP could just use execfile:
> http://docs.python.org/lib/built-in-funcs.html#execfile

Yes, the only problem with this is that execfile requires a full path, so it's 
a bit less convenient than import.  But while developing/debugging, it can do 
the trick.



More information about the SciPy-user mailing list