title: Sending messages between class threads Python
body: <p>Does anybody know how I can send a variable (or get a variable) from threadOne to threadTwo in this code without using a global variable?  If not, how would I operate a global variable?  Just define it before both classes and use the global definition in the run function?</p>
  
  <pre><code>import threading
  
  print "Press Escape to Quit"
  
  class threadOne(threading.Thread): #I don't understand this or the next line
      def run(self):
          setup()
  
      def setup():
          print 'hello world - this is threadOne'
  
  
  class threadTwo(threading.Thread):
      def run(self):
          print 'ran'
  
  threadOne().start()
  threadTwo().start()
  </code></pre>
  
  <p>Thanks</p>