title: Overriding python threading.Thread.run()
body: <p>Given the <a href="http://docs.python.org/library/threading.html" rel="noreferrer">Python documentation</a> for <code>Thread.run()</code>:</p>
  
  <blockquote>
    <p>You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.</p>
  </blockquote>
  
  <p>I have constructed the following code:</p>
  
  <pre><code>class DestinationThread(threading.Thread):
      def run(self, name, config):
          print 'In thread'
  
  thread = DestinationThread(args = (destination_name, destination_config))
  thread.start()
  </code></pre>
  
  <p>But when I execute it, I receive the following error:</p>
  
  <pre><code>Exception in thread Thread-1:
  Traceback (most recent call last):
    File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 522, in __bootstrap_inner
      self.run()
  TypeError: run() takes exactly 3 arguments (1 given)
  </code></pre>
  
  <p>It seems I am missing something obvious, but the various examples I have seen work with this methodology.  Ultimately I am trying to just pass the string and dictionary into the thread, if the Constructor is not the right way, but rather to make a new function to set the values prior to starting the thread, I am open to that.  </p>
  
  <p>Any suggestions on how to best accomplish this?</p>