surprised by import in python 2.6
Aahz
aahz at pythoncraft.com
Sat Jan 8 21:39:43 EST 2011
In article <TvxMo.3345$WJ4.1685 at newsfe12.ams2>,
Stefaan Himpe <stefaan.himpe at gmail.com> wrote:
>
>Recently someone asked me this question, to which I could not give an
>answer. I'm hoping for some insight, or a manual page. What follows is
>python 2.6.
>
>The problem is with the difference between
>
>from test import *
>
>and
>
>import test
Just adding to this thread for Gooja:
Don't use "import *" -- it makes debugging difficult because you can't
tell where a name comes from.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"Think of it as evolution in action." --Tony Rand
More information about the Python-list
mailing list