Skip to content

Commit 35b0541

Browse files
committed
As published.
1 parent 3466aa0 commit 35b0541

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

doc/source/8_debugging.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -515,13 +515,14 @@ The recipe for hypothesis-based debugging runs something like the following:
515515
1. Hypothesis Formation
516516

517517
What statements would be true were this issue not occurring. For example:
518+
518519
a. Are there variables which should have a known type or value, or would
519-
have a known type or value in response to a different input?
520+
have a known type or value in response to a different input?
520521
b. Does it appear that particular code that should have run already has
521-
not, or code that should not run has run?
522+
not, or code that should not run has run?
522523
c. Looking at a value which is observed to be wrong, where is the operation
523-
that computes that value? Does a. or b. apply to any of the inputs to
524-
that operation.
524+
that computes that value? Does a. or b. apply to any of the inputs to
525+
that operation.
525526

526527
This process requires intuition and understanding of the problem. It is the
527528
least systematic part of the process. The following steps are much more

doc/source/conf.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
'sphinxcontrib.blockdiag',
4040
'sphinx.ext.napoleon',
4141
'sphinx_panels',
42-
'sphinxcontrib.details.directive'
42+
'sphinxcontrib.details.directive',
43+
'sphinx_reredirects'
4344
]
4445
# Both the class’ and the __init__ method’s docstring are concatenated and
4546
# inserted into the class definition
@@ -78,6 +79,11 @@
7879
# for a list of supported languages.
7980
# language = None
8081

82+
redirects = {
83+
"edition1/exercises": "../exercises.html",
84+
"edition1/videos": "../videos.html"
85+
}
86+
8187
# There are two options for replacing |today|: either, you set today to some
8288
# non-false value, then it is used:
8389
# today = ''
@@ -246,6 +252,7 @@
246252
%\hypersetup{urlcolor=externallinkcolor}
247253
\hypersetup{urlcolor=black}
248254
\usepackage{poptitle}
255+
\title{Object-oriented Programming}
249256
\subtitle{in Python for Mathematicians}
250257
\edition{2021}
251258
\makeatletter

doc/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
.. image:: images/cover.png
2929
:width: 10em
3030
:align: right
31-
:target: https://fixme.foo
31+
:target: https://www.amazon.co.uk/dp/B09NR9R9P3
3232

3333
The complete book text is available on this website. However, if you'd
3434
like to have a physical copy, then please `buy the book
35-
<https://fixme.foo>`__.
35+
<https://www.amazon.co.uk/dp/B09NR9R9P3>`__.
3636

3737
.. container:: preface
3838

doc/webgit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit dd7dd29d5161b6b5ff640c4fa7b2a3aa958da10f
1+
Subproject commit 115ba35d46d528f2e15ef62a87b709ca7c17c269

0 commit comments

Comments
 (0)