Kevin Dangoor <[EMAIL PROTECTED]> writes:

> OK, I know that "from <foo> import *" is not a generally accepted
> practice. (There are a couple of exceptions, but that's generally the
> case.)

I try avoiding it at all costs.  My own code never uses that just if some
third party module uses it.

> I'm thinking that I'd like to change my general idiom to drop the
> turbogears.<function> usage for much of my own code. expose, validate,
> error_handler and redirect all get used enough that I'd rather not
> type them out. (Of course, using TextMate, I just type exp<tab> and
> get turbogears.expose(template=""), but still...)

I believe that most modern programming editors allows using macros or code
completion... 

> I wanted to see what people think about changing this way... it may
> seem minor, but it's a stylistic change that would appear in docs,
> quickstart, etc. And we don't have to do from turbogears import *. It
> could be from turbogears import expose, vaildate, ...

+1 to avoid "from turbogears import *" 

-- 
Jorge Godoy      <[EMAIL PROTECTED]>

Reply via email to