Christopher Arndt wrote:
But both forms have implications on how easy it is to read the code. If you do
from foo.bar.boo import *
and you're using names from the foo package further down in you code, the
reader cannot see, where this name was defined.
If you're using
import foo.bar.boo
...
spamm = foo.bar.boo.blub('eggs')
you will end up with many long lines, that you will have to break etc.
(the latter form might also incur a slight speed penalty because of all the
necessary namespace lookups)
Chris
I would code it as
import foo.bar.boo as boo
spamm = boo.blub('eggs')
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---