title: Python threading stopping code from being executed
body: <p>I have this code here:</p>
  <pre><code>from threading import Thread
  import time
  
  class TestClass():
  
      def __init__ (self, name):
          self.name = name
  
          self.thread = Thread(target=self.run())
          
          self.thread.start()
  
      def run(self):
          while True:
              print(self.name)
  
              time.sleep(1)
  
  test = TestClass('word')
  
  print('done')
  </code></pre>
  <p>So basically this just keeps printing 'word', without it ever printing 'done' . This is a small demonstration of the problem I'm having, cause threading is getting stuck and it's stopping other lines of code from being executed. You can try this on your own and you will get same results. Is anything I'm missing here?</p>