Skip to content

Commit 3ec91a3

Browse files
committed
Website build
1 parent 980ab0a commit 3ec91a3

16 files changed

+1604
-30
lines changed

10_trees_and_directed_acyclic_graphs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<div class="section" id="trees-and-directed-acyclic-graphs">
6363
<span id="trees"></span><h1><span class="section-number">10. </span>Trees and directed acyclic graphs<a class="headerlink" href="#trees-and-directed-acyclic-graphs" title="Permalink to this headline"></a></h1>
6464
<p>The <a class="reference internal" href="5_abstract_data_types.html#term-abstract-data-type"><span class="xref std std-term">abstract data types</span></a> that we met in
65-
<a class="reference internal" href="5_abstract_data_types.html#abstract-data-types"><span class="std std-numref">Chapter 5</span></a> were all fairly simple sequences of objects that
65+
<a class="reference internal" href="5_abstract_data_types.html#abstract-data-types"><span class="std std-numref">Week 5</span></a> were all fairly simple sequences of objects that
6666
were extensible in different ways. If that were all the sum total of abstract
6767
data types then the reader might reasonably wonder what all the fuss is about.
6868
In this chapter we’ll look at <a class="reference internal" href="#term-tree"><span class="xref std std-term">trees</span></a> and <a class="reference internal" href="#term-directed-acyclic-graph"><span class="xref std std-term">directed acyclic
@@ -884,7 +884,7 @@ <h3><span class="section-number">10.4.3. </span>Single dispatch functions<a clas
884884
<p>The new feature that we haven’t met before appears on line 5.
885885
<a class="reference external" href="https://docs.python.org/3/library/functools.html#functools.singledispatch" title="(in Python v3.9)"><code class="xref py py-func docutils literal notranslate"><span class="pre">functools.singledispatch()</span></code></a> turns a function into
886886
a single dispatch function. The <code class="xref py py-obj docutils literal notranslate"><span class="pre">&#64;</span></code> symbol marks
887-
<a class="reference external" href="https://docs.python.org/3/library/functools.html#functools.singledispatch" title="(in Python v3.9)"><code class="xref py py-func docutils literal notranslate"><span class="pre">singledispatch()</span></code></a> as a <a class="reference external" href="https://docs.python.org/3/glossary.html#term-decorator" title="(in Python v3.9)"><span class="xref std std-term">decorator</span></a>. We’ll return to them
887+
<a class="reference external" href="https://docs.python.org/3/library/functools.html#functools.singledispatch" title="(in Python v3.9)"><code class="xref py py-func docutils literal notranslate"><span class="pre">singledispatch()</span></code></a> as a <a class="reference internal" href="11_further_object-oriented_features.html#term-decorator"><span class="xref std std-term">decorator</span></a>. We’ll return to them
888888
in <a class="reference internal" href="11_further_object-oriented_features.html#decorators"><span class="std std-numref">Section 11.1</span></a>. For the moment, we just need to know that
889889
<code class="xref py py-obj docutils literal notranslate"><span class="pre">&#64;singledispatch</span></code> turns the function it precedes into a single dispatch
890890
function.</p>

11_further_object-oriented_features.html

Lines changed: 624 additions & 5 deletions
Large diffs are not rendered by default.

2_programs_in_files.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ <h2><span class="section-number">2.7. </span>Testing frameworks<a class="headerl
650650
the practical details of including tests in your code here.</p>
651651
<p>There are a number of Python packages which support code testing. The
652652
concepts are largely similar so rather than get bogged down in the
653-
details of multiple frameworks, we will introduce <a class="reference external" href="https://docs.pytest.org/en/latest/index.html" title="(in pytest v0.1.dev246+g63bc49d)"><span class="xref std std-doc">pytest</span></a>, which is one of the most widely used. Pytest is simply a Python
653+
details of multiple frameworks, we will introduce <a class="reference external" href="https://docs.pytest.org/en/latest/index.html" title="(in pytest v0.1.dev249+g35df3e6)"><span class="xref std std-doc">pytest</span></a>, which is one of the most widely used. Pytest is simply a Python
654654
package, so you can install it into your current environment using:</p>
655655
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$</span> python -m pip install pytest
656656
</pre></div>

8_inheritance.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,10 +721,10 @@ <h3><span class="section-number">8.2.2. </span>Class attributes<a class="headerl
721721
</pre></div>
722722
</div>
723723
<p>In fact, <code class="xref py py-class docutils literal notranslate"><span class="pre">Group</span></code> is never supposed to be instantiated, it plays the role
724-
of an <a class="reference internal" href="11_further_object-oriented_features.html#term-abstract-class"><span class="xref std std-term">abstract class</span></a>. In other words, it’s role is to provide
724+
of an <a class="reference internal" href="11_further_object-oriented_features.html#term-abstract-base-class"><span class="xref std std-term">abstract base class</span></a>. In other words, it’s role is to provide
725725
functionality to classes that inherit from it, rather than to be the type of
726726
objects itself. We will return to this in more detail in
727-
<a class="reference internal" href="11_further_object-oriented_features.html#abstract-classes"><span class="std std-numref">Section 11.2</span></a>.</p>
727+
<a class="reference internal" href="11_further_object-oriented_features.html#abstract-base-classes"><span class="std std-numref">Section 11.2</span></a>.</p>
728728
<p>However, if we instead instantiate <a class="reference internal" href="example_code.html#example_code.groups.CyclicGroup" title="example_code.groups.CyclicGroup"><code class="xref py py-class docutils literal notranslate"><span class="pre">CyclicGroup</span></code></a>
729729
then everything works:</p>
730730
<div class="highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="gp">In [1]: </span><span class="kn">from</span> <span class="nn">example_code.groups</span> <span class="kn">import</span> <span class="n">CyclicGroup</span>

0 commit comments

Comments
 (0)