title: Simple threading in Python 2.6 using thread.start_new_thread()
body: <p>I'm following a tutorial on simple threading. They give this example and when I try to use it I'm getting unintelligible errors from the interpreter. Can you please tell me why this isn't working? I'm on WinXP SP3 w/ Python 2.6 current</p>
  
  <pre><code>import thread
  
  def myfunction(mystring,*args):
      print mystring
  
  
  if __name__ == '__main__':
  
      try:
  
          thread.start_new_thread(myfunction,('MyStringHere',1))
  
      except Exception as errtxt:
          print errtxt
  </code></pre>
  
  <p>Executing this results in::</p>
  
  <p>Unhandled exception in thread started by
  Error in sys.excepthook:</p>
  
  <p>Original exception was:</p>
  
  <p>The information missing in the error is <em>actually</em> missing in the output.</p>