Skip to content

Commit e5dc39e

Browse files
committed
Typo
1 parent 112fe2a commit e5dc39e

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

02-introduction.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ this comes at the price of readability. If you don't comment your code at the
137137
time of writing, you'll be unable to guess what a function is doing after a few
138138
weeks (or even days). For example, can you tell what the two functions below
139139
are doing? Probably you can tell for the first one, but unlikely for the second
140-
(or you don't need to read this book).
140+
(or your name is `Jaime Fernández del Río
141+
<http://stackoverflow.com/questions/7100242/python-numpy-first-occurrence-of-subarray>`_
142+
and you don't need to read this book).
141143

142144
.. code:: python
143145

07-beyond-numpy.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ important to wonder if you need an actual instance of your result or if a
124124
simple generator might do the job.
125125

126126

127-
numpy & co
127+
Numpy & co
128128
----------
129129

130130
Beyond numpy, there are several other Python packages that are worth a look

book.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ <h2 class="subtitle" id="copyright-c-2017-nicolas-p-rougier-nicolas-rougier-inri
8484
</li>
8585
<li><a class="reference internal" href="#beyond-numpy" id="id80">Beyond Numpy</a><ul>
8686
<li><a class="reference internal" href="#back-to-python" id="id81">Back to Python</a></li>
87-
<li><a class="reference internal" href="#numpy-co" id="id82">numpy &amp; co</a></li>
87+
<li><a class="reference internal" href="#numpy-co" id="id82">Numpy &amp; co</a></li>
8888
<li><a class="reference internal" href="#scipy-co" id="id83">Scipy &amp; co</a></li>
8989
<li><a class="reference internal" href="#id49" id="id84">Conclusion</a></li>
9090
</ul>
@@ -353,7 +353,8 @@ <h2><a class="toc-backref" href="#table-of-contents">Readability vs speed</a></h
353353
time of writing, you'll be unable to guess what a function is doing after a few
354354
weeks (or even days). For example, can you tell what the two functions below
355355
are doing? Probably you can tell for the first one, but unlikely for the second
356-
(or you don't need to read this book).</p>
356+
(or your name is <a class="reference external" href="http://stackoverflow.com/questions/7100242/python-numpy-first-occurrence-of-subarray">Jaime Fernández del Río</a>
357+
and you don't need to read this book).</p>
357358
<pre class="code python literal-block">
358359
<span class="keyword">def</span> <span class="name function">function_1</span><span class="punctuation">(</span><span class="name">seq</span><span class="punctuation">,</span> <span class="name">sub</span><span class="punctuation">):</span>
359360
<span class="keyword">return</span> <span class="punctuation">[</span><span class="name">i</span> <span class="keyword">for</span> <span class="name">i</span> <span class="operator word">in</span> <span class="name builtin">range</span><span class="punctuation">(</span><span class="name builtin">len</span><span class="punctuation">(</span><span class="name">seq</span><span class="punctuation">)</span> <span class="operator">-</span> <span class="name builtin">len</span><span class="punctuation">(</span><span class="name">sub</span><span class="punctuation">))</span> <span class="keyword">if</span> <span class="name">seq</span><span class="punctuation">[</span><span class="name">i</span><span class="punctuation">:</span><span class="name">i</span><span class="operator">+</span><span class="name builtin">len</span><span class="punctuation">(</span><span class="name">sub</span><span class="punctuation">)]</span> <span class="operator">==</span> <span class="name">sub</span><span class="punctuation">]</span>
@@ -2444,7 +2445,7 @@ <h1><a class="toc-backref" href="#table-of-contents">Beyond Numpy</a></h1>
24442445
<p class="topic-title first"><strong>Contents</strong></p>
24452446
<ul class="simple">
24462447
<li><a class="reference internal" href="#back-to-python" id="id158">Back to Python</a></li>
2447-
<li><a class="reference internal" href="#numpy-co" id="id159">numpy &amp; co</a><ul>
2448+
<li><a class="reference internal" href="#numpy-co" id="id159">Numpy &amp; co</a><ul>
24482449
<li><a class="reference internal" href="#numexpr" id="id160">NumExpr</a></li>
24492450
<li><a class="reference internal" href="#cython" id="id161">Cython</a></li>
24502451
<li><a class="reference internal" href="#numba" id="id162">Numba</a></li>
@@ -2567,7 +2568,7 @@ <h2><a class="toc-backref" href="#id34">Back to Python</a></h2>
25672568
simple generator might do the job.</p>
25682569
</div>
25692570
<div class="section" id="numpy-co">
2570-
<h2><a class="toc-backref" href="#id34">numpy &amp; co</a></h2>
2571+
<h2><a class="toc-backref" href="#id34">Numpy &amp; co</a></h2>
25712572
<p>Beyond numpy, there are several other Python packages that are worth a look
25722573
because they address similar yet different class of problems using different
25732574
technology (compilation, virtual machine, just in time compilation, GPU,

0 commit comments

Comments
 (0)