Browse Source

Typo

pull/46/head
Jure Šorn 5 years ago
parent
commit
4e31793d0e
3 changed files with 4 additions and 4 deletions
  1. 2
      README.md
  2. 2
      index.html
  3. 4
      web/index_for_pdf.html

2
README.md

@ -2217,7 +2217,7 @@ Coroutine
### Helper Decorator
* **All coroutines must first be "primed" by calling `'next(<coroutine>)'`.**
* **Remembering to call next() is easy to forget.**
* **Solved by wrapping coroutine functions with a following decorator:**
* **Solved by wrapping coroutine functions with the following decorator:**
```python
def coroutine(func):

2
index.html

@ -1918,7 +1918,7 @@ ValueError: malformed node or string
</ul><div><h3 id="helperdecorator">Helper Decorator</h3><ul>
<li><strong>All coroutines must first be "primed" by calling <code class="python hljs"><span class="hljs-string">'next(&lt;coroutine&gt;)'</span></code>.</strong></li>
<li><strong>Remembering to call next() is easy to forget.</strong></li>
<li><strong>Solved by wrapping coroutine functions with a following decorator:</strong></li>
<li><strong>Solved by wrapping coroutine functions with the following decorator:</strong></li>
</ul><pre><code class="python language-python hljs"><span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">coroutine</span><span class="hljs-params">(func)</span>:</span>
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">out</span><span class="hljs-params">(*args, **kwargs)</span>:</span>
cr = func(*args, **kwargs)

4
web/index_for_pdf.html

@ -97,7 +97,7 @@
<strong>open function, <a href="#open">22</a>-<a href="#file">23</a></strong><br>
<strong>operator module, <a href="#operator">31</a></strong><br>
<strong>OS commands, <a href="#oscommands">24</a>-<a href="#shellcommands">25</a></strong><br>
<strong>os module, <a href="#path">23</a>, <a href="#oscommands">24</a>-<a href="#shellcommands">25</a>, </strong> </p>
<strong>os module, <a href="#path">23</a>, <a href="#oscommands">24</a>-<a href="#shellcommands">25</a></strong> </p>
<h3 id="p">P</h3>
<p><strong>partial function, <a href="#partial">12</a></strong><br>
<strong>paths, <a href="#path">23</a>-<a href="#pathlib">24</a></strong><br>
@ -129,7 +129,7 @@
<strong>splat operator, <a href="#splatoperator">10</a>-<a href="#otheruses">11</a></strong><br>
<strong>statistics module, <a href="#statistics">7</a></strong><br>
<strong>strings, <a href="#string">5</a></strong><br>
<strong>struct module, <a href="#struct">28</a></strong>-<a href="#integertypesusecapitalletterforunsignedtypestandardsizesareinbrackets">29</a></strong><br>
<strong>struct module, <a href="#struct">28</a>-<a href="#integertypesusecapitalletterforunsignedtypestandardsizesareinbrackets">29</a></strong><br>
<strong>subprocess module, <a href="#usingsubprocess">25</a></strong><br>
<strong>synthesizer, <a href="#synthesizer">41</a></strong><br>
<strong>sys module, <a href="#lrucache">15</a>, <a href="#commonbuiltinexceptions">21</a>, <a href="#print">22</a>, <a href="#commandlinearguments">22</a></strong> </p>

Loading…
Cancel
Save