durusmail: quixote-users: import style
import style
2003-06-10
2003-06-19
import style
Greg Ward
2003-06-19
On 10 June 2003, Mark Bucciarelli said:
> 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?

No technical benefits that I know of -- just less typing.  I generally
prefer unqualified names in code; if I don't remember what something is
or where it came from, that's why Emacs has a "search" feature.

> i read the pyhon docs and the only big difference i saw was a drawback
> w.r.t. how the reload() built-in works.

Or doesn't work.  reload() is occasionally handy in an interactive
interpreter, but in general reloading Python modules is doomed to
failure.  There are some prices to be paid for using such a highly
dynamic language!  (Or, to paraphrase Larry Wall, Java has to be better
at *something*.)

        Greg
--
Greg Ward                          http://www.gerg.ca/
Everybody is going somewhere!!  It's probably a garage sale
or a disaster Movie!!

reply