[Web-SIG] Random thoughts
Anthony Baxter
anthony at interlink.com.au
Mon Nov 3 04:21:36 EST 2003
>>> "Gregory (Grisha) Trubetskoy" wrote
> 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.
I disagree - first off, case sensitivity differs on Unix and non-Unix
platforms. Secondly, this is a new package, so it's not like we have to
worry about existing codebases. If a user does this, they'll figure it
out pretty quickly.
Anthony
--
Anthony Baxter <anthony at interlink.com.au>
It's never too late to have a happy childhood.
More information about the Web-SIG
mailing list