durusmail: quixote-users: import style
import style
2003-06-10
2003-06-19
import style
Titus Brown
2003-06-10
-> i'm curious about the import style used with quixote, namely:
->      from xyz import a,b,c.
->
-> is this a stylistic convention or are there technical benefits?
->
-> i read the pyhon docs and the only big difference i saw was a drawback
-> w.r.t. how the reload() built-in works.

What are the alternatives you're thinking of?

I see 'from xyz import *' which is dangerous -- it imports symbols you
don't explicitly ask for, potentially overwriting other things in your
namespace -- and 'import xyz', which is fine but requires an extra
dictionary lookup when you access 'xyz.a'...  I tend to use the latter
style, but that's because I'm forgetful and like to remember where
my methods are.

--t

reply