title: python queue & multiprocessing queue: how they behave?
body: <p>This sample code works (I can write something in the file):</p>
  
  <pre><code>from multiprocessing import Process, Queue
  
  queue = Queue()
  def _printer(self, queue):
      queue.put("hello world!!")
  
  def _cmdDisp(self, queue):
      f = file("Cmd.log", "w")
      print &gt;&gt; f, queue.get()
      f.close()
  </code></pre>
  
  <p>instead this other sample not: (errormsg: 'module' object is not callable)</p>
  
  <pre><code>import Queue
  
  queue = Queue()
  def _printer(self, queue):
      queue.put("hello world!!")
  
  def _cmdDisp(self, queue):
      f = file("Cmd.log", "w")
      print &gt;&gt; f, queue.get()
      f.close()
  </code></pre>
  
  <p>this other sample not (I cannot write something in the file):</p>
  
  <pre><code>import Queue
  
  queue = Queue.Queue()
  def _printer(self, queue):
      queue.put("hello world!!")
  
  def _cmdDisp(self, queue):
      f = file("Cmd.log", "w")
      print &gt;&gt; f, queue.get()
      f.close()
  </code></pre>
  
  <p>Can someone explain the differences? and the right to do?</p>