I do "import turbogears as tg".  "turbogears" is too long and ugly for
a framework module, especially if it's scattered all over your code,
plus I don't like compoundwords.  I never use "from X import *" 
because Guido says it's bad, and it requires intimate knowledge of the
imported module to recognize which names come from it.  The only
exception is something like TkInter where you might use fifty names
like .pack(side=N), and listing each of them is just too much.

As for whether "import MODULE"  or "from MODULE import NAME" is
better, it just depends on the situation.  The former gives you a
sense of which package you're using.  The latter is self-adjusting if
you move the object to a different module; you just change the import 
line rather than every line.

--
Mike Orr <[EMAIL PROTECTED]>
([EMAIL PROTECTED] address is semi-reliable)

Reply via email to