title: Python multiprocessing class methods
body: <p>I'm trying to change a class field using it's method, but when the method is put into it doesn't work.</p>
  
  <p>from multiprocessing import Process</p>
  
  <pre><code>class Multi:
      def __init__(self):
          self.x = 20
  
  
      def loop(self,):
          for i in range(1,100):
              self.x = i
  
  M = Multi()
  
  p = Process(target=M.loop)
  p.start()
  </code></pre>
  
  <p>After running this program M.x is still 20. How is that possible?</p>