title: Python threads passing parameters
body: <p>I'm trying to passing some parameter to the server tread, but I have no idea how?</p>
  
  <p>this is my code:</p>
  
  <pre><code>HOST, PORT = socket.gethostbyname( socket.gethostname() ), 31000
  self.server = SocketServer.ThreadingTCPServer( ( HOST, PORT ), MCRequestHandler )
  ip, port = self.server.server_address        
  self.server_thread = threading.Thread( target = self.server.serve_forever )
  </code></pre>
  
  <p>this is the MCRequestHandler</p>
  
  <pre><code>class MCRequestHandler( SocketServer.BaseRequestHandler ):
  
      global Lidars, clientsLock, postbox
      Lidars = []
      postbox = {}
      clientsLock = threading.RLock()    
  
      def setup( self ):
          clientsLock.acquire()
  </code></pre>
  
  <p>How can I pass one or two parameter to the MCRequestHandler class?</p>