import error?

Peter Hansen peter at engcorp.com
Thu Oct 16 11:58:53 EDT 2003


Tom wrote:
> 
> thanks a lot for your explanations. I'll try what you suggested, but
> that looks like a lot of work,so I am not sure when I find time for
> that! :-)
> But I will defintely consider your concerns about my programming for my
> next piece of code right from the beginning. :-) I had no idea that
> "from xxx import *"can cause so many problems and is kind of bad style.


See this link for more:

http://www.python.org/doc/faq/programming.html#what-are-the-best-practices-for-using-import-in-a-module

You can also check the comp.lang.python for many discussions of this
(bad) practice and the potential bad outcomes:

http://groups.google.ca/groups?q=%22import+*%22&meta=group%3Dcomp.lang.python.*

-Peter




More information about the Python-list mailing list