Design philosophy of HTTPServer and BaseHTTPRequestHandler
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Wed Aug 22 23:34:42 EDT 2007
En Wed, 22 Aug 2007 17:27:01 -0300, tzuchien.chiu
<tzuchien.chiu at gmail.com> escribi�:
> 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?
It is OK to use it, it's documented under the base class,
SocketServer.RequestHandler
--
Gabriel Genellina
More information about the Python-list
mailing list