title: How to clear a multiprocessing.Queue?
body: <p>I just want to know how to clear a <code>multiprocessing.Queue</code> like a <code>queue.Queue</code> in Python:</p>
  <pre class="lang-py prettyprint-override"><code>&gt;&gt;&gt; import queue
  &gt;&gt;&gt; queue.Queue().clear()
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  AttributeError: 'Queue' object has no attribute 'clear'
  &gt;&gt;&gt; queue.Queue().queue.clear()
  </code></pre>
  <pre><code>&gt;&gt;&gt; import multiprocessing
  &gt;&gt;&gt; multiprocessing.Queue().clear()
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  AttributeError: 'Queue' object has no attribute 'clear'
  &gt;&gt;&gt; multiprocessing.Queue().queue.clear()
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  AttributeError: 'Queue' object has no attribute 'queue'
  </code></pre>