title: passing class name as argument to function?
body: <p>Here in given code it is passing class name i.e. MyRequestHandler to TCP and also after taking class name as argument what does it do with that.So my question is that can class name be used as argument and also class name doesn't refer to anything so how is it possible???i apologize for silly ques!!</p>
  
  <pre><code>    from SocketServer import (TCPServer as TCP,
      StreamRequestHandler as SRH)
      from time import ctime
      HOST = ''
      PORT = 21567
      ADDR = (HOST, PORT)
      class MyRequestHandler(SRH):
          def handle(self):
              print '...connected from:',self.client_address
              self.wfile.write('[%s] %s' % (ctime(),
                  self.rfile.readline()))
  
     tcpServ = TCP(ADDR, MyRequestHandler)
     print 'waiting for connection...'
     tcpServ.serve_forever(
  </code></pre>