more advanced learning resources (code structure, fundamentals)
Mel
mwilson at the-wire.com
Thu Jul 7 07:04:40 EDT 2011
John [H2O] wrote:
[ ... ]
> What are the key points to the classes? Is it okay to reference or pass
> classes to instantiate a class?
Yes. The standard library does this in BaseHTTPServer (via its parent
SocketServer.) Maybe looks abstruse at the outset, but it's the natural way
to assign a fresh message handler to a new input message. Docs are via the
Python Global Module Index, source is in some directory like
/usr/lib/python2.6/SocketServer.py , .../BaseHTTPServer.py , etc.
Mel.
More information about the Python-list
mailing list