[Web-SIG] Random thoughts
David Fraser
davidf at sjsoft.com
Mon Nov 3 03:51:37 EST 2003
Gregory (Grisha) Trubetskoy wrote:
>On Fri, 31 Oct 2003, Greg Ward wrote:
>
>
>
>>(BTW, whoever said that "web.client" and "web.server" are better names
>>than "web.http" is right. I think. So far I've agreed with every idea
>>I've seen on this sig, including the mutually contradicting ones. ;-)
>>
>>
>
>A sidenote on this - lower case common words do not make good module names
>because they are too easily overshadowed (mistakenly) by local variables.
>
>E.g.:
>
>from web import cookie
>
>[ blah blah ]
>
> cookie = request.get_cookie()
>
> [oops, the cookie module just got inaccessible, must use kookie
> or something ungly like this]
>
>I think the best solution is to use upper case for module names like
>"Cookie", "HTTP", "Client", etc.
>
>Grisha
>
>
But lower case names for packages ("web.Cookie")?
David
More information about the Web-SIG
mailing list