Skip to content

Commit 17c8388

Browse files
committed
Website build
1 parent 57ec3fb commit 17c8388

File tree

8 files changed

+1437
-111
lines changed

8 files changed

+1437
-111
lines changed

2_programs_in_files.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<div class="body" role="main">
6161

6262
<div class="section" id="programs-in-files">
63-
<h1><span class="section-number">2. </span>Programs in files<a class="headerlink" href="#programs-in-files" title="Permalink to this headline"></a></h1>
63+
<span id="programs-files"></span><h1><span class="section-number">2. </span>Programs in files<a class="headerlink" href="#programs-in-files" title="Permalink to this headline"></a></h1>
6464
<p>This week we will start to learn how to combine pieces of code into larger units,
6565
and how to package up your code so that you or others can do the same.
6666
You will previously have written Python code in Jupyter notebooks, and
@@ -281,7 +281,7 @@ <h3><span class="section-number">2.4.2. </span>When to use scripts<a class="head
281281
scripts to a git repository, making a new commit every time you edit
282282
it, you would also be able to go back and find the point at which the
283283
script stopped working. We will return to this debugging technique in
284-
<a class="reference internal" href="9_debugging.html#bisection-debugging"><span class="std std-numref">Section 9.2.2</span></a>.</p>
284+
<a class="reference internal" href="9_debugging.html#bisection-debugging"><span class="std std-numref">Section 9.7.2</span></a>.</p>
285285
</div>
286286
<div class="section" id="when-not-to-use-scripts">
287287
<h3><span class="section-number">2.4.3. </span>When not to use scripts<a class="headerlink" href="#when-not-to-use-scripts" title="Permalink to this headline"></a></h3>
@@ -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.dev208+g22c0dac)"><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.dev223+g79b03ce)"><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>

9_debugging.html

Lines changed: 702 additions & 45 deletions
Large diffs are not rendered by default.

_sources/2_programs_in_files.rst.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _programs_files:
2+
13
Programs in files
24
===================
35

_sources/9_debugging.rst.txt

Lines changed: 710 additions & 56 deletions
Large diffs are not rendered by default.

genindex.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,12 @@ <h2 id="B">B</h2>
110110
<table style="width: 100%" class="indextable genindextable"><tr>
111111
<td style="width: 33%; vertical-align: top;"><ul>
112112
<li><a href="6_exceptions.html#term-back-trace"><strong>back trace</strong></a>
113+
</li>
114+
<li><a href="4_style.html#term-block-comment"><strong>block comment</strong></a>
113115
</li>
114116
</ul></td>
115117
<td style="width: 33%; vertical-align: top;"><ul>
116-
<li><a href="4_style.html#term-block-comment"><strong>block comment</strong></a>
118+
<li><a href="9_debugging.html#term-breakpoint"><strong>breakpoint</strong></a>
117119
</li>
118120
<li><a href="example_code.html#example_code.linked_list.byte_size">byte_size() (in module example_code.linked_list)</a>
119121
</li>
@@ -390,6 +392,8 @@ <h2 id="M">M</h2>
390392
<li><a href="3_objects.html#term-magic-method"><strong>magic method</strong></a>
391393
</li>
392394
<li><a href="3_objects.html#term-method"><strong>method</strong></a>
395+
</li>
396+
<li><a href="9_debugging.html#term-minimal-failing-example"><strong>minimal failing example</strong></a>
393397
</li>
394398
<li><a href="4_style.html#term-modularity"><strong>modularity</strong></a>
395399
</li>
@@ -467,10 +471,12 @@ <h2 id="P">P</h2>
467471
</li>
468472
<li><a href="example_code.html#example_code.polynomial.Polynomial">Polynomial (class in example_code.polynomial)</a>
469473
</li>
470-
<li><a href="10_trees_and_directed_acyclic_graphs.html#term-postorder-traversal"><strong>postorder traversal</strong></a>
474+
<li><a href="9_debugging.html#term-postmortem-debugging"><strong>postmortem debugging</strong></a>
471475
</li>
472476
</ul></td>
473477
<td style="width: 33%; vertical-align: top;"><ul>
478+
<li><a href="10_trees_and_directed_acyclic_graphs.html#term-postorder-traversal"><strong>postorder traversal</strong></a>
479+
</li>
474480
<li><a href="example_code.html#example_code.graphs.postvisitor">postvisitor() (in module example_code.graphs)</a>
475481
</li>
476482
<li><a href="10_trees_and_directed_acyclic_graphs.html#term-preorder-traversal"><strong>preorder traversal</strong></a>
@@ -498,6 +504,8 @@ <h2 id="R">R</h2>
498504
<table style="width: 100%" class="indextable genindextable"><tr>
499505
<td style="width: 33%; vertical-align: top;"><ul>
500506
<li><a href="example_code.html#example_code.shapes.Rectangle">Rectangle (class in example_code.shapes)</a>
507+
</li>
508+
<li><a href="9_debugging.html#term-regression"><strong>regression</strong></a>
501509
</li>
502510
</ul></td>
503511
<td style="width: 33%; vertical-align: top;"><ul>

index.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,15 @@
151151
</ul>
152152
</li>
153153
<li class="toctree-l1"><a class="reference internal" href="9_debugging.html">9. Debugging and testing</a><ul>
154-
<li class="toctree-l2"><a class="reference internal" href="9_debugging.html#using-a-debugger">9.1. Using a debugger</a></li>
155-
<li class="toctree-l2"><a class="reference internal" href="9_debugging.html#debugging-strategy">9.2. Debugging strategy</a></li>
156-
<li class="toctree-l2"><a class="reference internal" href="9_debugging.html#testing-code">9.3. Testing code</a></li>
157-
<li class="toctree-l2"><a class="reference internal" href="9_debugging.html#glossary">9.4. Glossary</a></li>
154+
<li class="toctree-l2"><a class="reference internal" href="9_debugging.html#pandas">9.1. Pandas</a></li>
155+
<li class="toctree-l2"><a class="reference internal" href="9_debugging.html#using-a-debugger">9.2. Using a debugger</a></li>
156+
<li class="toctree-l2"><a class="reference internal" href="9_debugging.html#using-a-graphical-debugger">9.3. Using a graphical debugger</a></li>
157+
<li class="toctree-l2"><a class="reference internal" href="9_debugging.html#invoking-a-command-line-debugger">9.4. Invoking a command-line debugger</a></li>
158+
<li class="toctree-l2"><a class="reference internal" href="9_debugging.html#command-line-debugger-commands">9.5. Command-line debugger commands</a></li>
159+
<li class="toctree-l2"><a class="reference internal" href="9_debugging.html#debugging-strategy">9.6. Debugging strategy</a></li>
160+
<li class="toctree-l2"><a class="reference internal" href="9_debugging.html#debugging-tactics">9.7. Debugging tactics</a></li>
161+
<li class="toctree-l2"><a class="reference internal" href="9_debugging.html#glossary">9.8. Glossary</a></li>
162+
<li class="toctree-l2"><a class="reference internal" href="9_debugging.html#exercises">9.9. Exercises</a></li>
158163
</ul>
159164
</li>
160165
<li class="toctree-l1"><a class="reference internal" href="10_trees_and_directed_acyclic_graphs.html">10. Trees and directed acyclic graphs</a><ul>

objects.inv

262 Bytes
Binary file not shown.

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)