title: Python sharing a dictionary between parallel processes
body: <p>I want to share a dictionary between my processes as follows: </p>
  
  <pre><code>def f(y,x):
      y[x]=[x*x]                                                          
  
  if __name__ == '__main__':
      pool = Pool(processes=4)
      inputs = range(10)
      y={}                             
      result = pool.map(f,y,inputs)
  </code></pre>
  
  <p>The y returns {}. How can I make it work?</p>
  
  <p>Thanks,</p>