[Web-SIG] Random thoughts

John J Lee jjl at pobox.com
Mon Nov 3 07:39:12 EST 2003


On Mon, 3 Nov 2003, Anthony Baxter wrote:
[...]
> > 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.

And...?  Python module names *once they're imported* are case-sensitive.


> Secondly, this is a new package, so it's not like we have to
> worry about existing codebases.

And...?


> If a user does this, they'll figure it
> out pretty quickly.

Grisha was arguing that it's a shame to force people to pick ugly names,
not (necessarily) that it would cause bugs.


John



More information about the Web-SIG mailing list