Design philosophy of HTTPServer and BaseHTTPRequestHandler

tzuchien.chiu tzuchien.chiu at gmail.com
Wed Aug 22 22:27:01 CEST 2007


On 22 ago, 14:45, Gabriel Genellina <gagsl-... at yahoo.com.ar> wrote:
> The server is permanent; request handler instances are created and
> destroyed as HTTP requests arrive and are processed.
> You should store any permanent info in the server; your
> "BaseHTTPRequestHandler-derived class" can reference the server using
> its "server" attribute.

I found the server attribute in the source code (/Lib), but it is not
documented in Python Library Reference 18.19.

I wonder that if I can rely on this "undocumented" attribute?




More information about the Python-list mailing list