import, from and reload

John Salerno johnjsal at NOSPAMgmail.com
Thu Mar 2 13:20:13 EST 2006


Dave Benjamin wrote:

> In general, "from X import *" should be avoided anyway, for reasons that 
> have been discussed many times in the past. The annoyance with reloading 
> is just one more reason. Better to just use "import X" in the first place.
> 

Thanks. I kind of figured it's better to use import instead of from 
anyway, but I was following along with some examples that use from 
(despite the fact that earlier in the book they even say that from is 
problematic and you should use import instead!)  :)



More information about the Python-list mailing list