[mod_python] newbie

Kevin Ballard kevin at sb.org
Fri Dec 19 19:31:59 EST 2003


For the record, I meant to say

from mod_python import apache

because what I wrote wouldn't actually run.

And although I tend to agree with you in general, I still prefer 
importing apache from mod_python rather than just importing mod_python.

On Dec 19, 2003, at 3:51 PM, Russell Nelson wrote:

> Kevin Ballard writes:
>> What's your mptest.py look like?
>>
>> Most likely, it's something like
>>
>> from apache import *
>
> Just as a matter of style, I think Guido (BDFL) discourages this sort
> of thing.  For myself, even though it means more typing in the first
> place, I prefer to see a plain import, and lots of foo., bar., and
> baz. prefixes.  Lets the newbie (which I've been so very recently)
> know which module the function is associated with.

-- 
Kevin Ballard
kevin at sb.org
http://www.tildesoft.com
http://kevin.sb.org



More information about the Mod_python mailing list