durusmail: quixote-users: [PATCH] http response code enumeration
Accept-aware functions via metaclasses
2003-09-25
2003-09-26
Re: Accept-aware functions via metaclasses
2003-09-26
2003-09-26
[PATCH] http response code enumeration
2003-09-26
2003-09-26
2003-09-26
[PATCH] http response code enumeration
John Belmonte
2003-09-26
Neil Schemenauer wrote:
> I'm worried about namespace collisions.  What do you think of
> prefixing STATUS_?  Another option is to put it in it's own module
> (e.g. http_status).  I don't think http_response too large yet,
> however and these codes definite are HTTP response related.

If that's really a problem, I would use the http_status module instead
of a prefix (in fact, that's exactly what I do locally in my project).

However, I don't see a problem.  If a Quixote developer is writing code
for quixote.http_response and he makes a variable called OK that means
something other than the HTTP response, he should be fired.  And if
someone uses "from foo import *" in her Python program, she should be
fired, too :-).



--
http:// if   le.o  /


reply