Skip to content

Commit c7812ab

Browse files
committed
Queue
1 parent fd40b77 commit c7812ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2004,9 +2004,9 @@ from queue import Queue
20042004
```
20052005

20062006
```python
2007-
<Queue>.put(<el>) # Blocks until queue has a free spot.
2007+
<Queue>.put(<el>) # Blocks until queue stops being full.
20082008
<Queue>.put_nowait(<el>) # Raises queue.Full exception if full.
2009-
<el> = <Queue>.get() # Blocks until queue contains an item.
2009+
<el> = <Queue>.get() # Blocks until queue stops being empty.
20102010
<el> = <Queue>.get_nowait() # Raises _queue.Empty exception if empty.
20112011
```
20122012

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,9 +1763,9 @@
17631763
</code></pre></div>
17641764

17651765

1766-
<pre><code class="python language-python hljs">&lt;Queue&gt;.put(&lt;el&gt;) <span class="hljs-comment"># Blocks until queue has a free spot.</span>
1766+
<pre><code class="python language-python hljs">&lt;Queue&gt;.put(&lt;el&gt;) <span class="hljs-comment"># Blocks until queue stops being full.</span>
17671767
&lt;Queue&gt;.put_nowait(&lt;el&gt;) <span class="hljs-comment"># Raises queue.Full exception if full.</span>
1768-
&lt;el&gt; = &lt;Queue&gt;.get() <span class="hljs-comment"># Blocks until queue contains an item.</span>
1768+
&lt;el&gt; = &lt;Queue&gt;.get() <span class="hljs-comment"># Blocks until queue stops being empty.</span>
17691769
&lt;el&gt; = &lt;Queue&gt;.get_nowait() <span class="hljs-comment"># Raises _queue.Empty exception if empty.</span>
17701770
</code></pre>
17711771
<div><h2 id="operator"><a href="#operator" name="operator">#</a>Operator</h2><pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> operator <span class="hljs-keyword">import</span> add, sub, mul, truediv, floordiv, mod, pow, neg, abs

0 commit comments

Comments
 (0)