durusmail: quixote-users: import style
import style
2003-06-10
2003-06-19
import style
Mark Bucciarelli
2003-06-10
On Tuesday 10 June 2003 2:46 pm, Titus Brown wrote:
> -> 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?
>
> 'import xyz'

yes.

> which is fine but requires an extra dictionary lookup when you
> access 'xyz.a

aha.  plus all that extra typing.  :)



reply