Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3479f5b

Browse files
committed
Small fix
1 parent af3e110 commit 3479f5b

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

book/book.tex

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
\title{Think Python}
3333
\author{Allen B. Downey}
3434
\newcommand{\thetitle}{Think Python: How to Think Like a Computer Scientist}
35-
\newcommand{\theversion}{2nd Edition, Version 2.2.19}
35+
\newcommand{\theversion}{2nd Edition, Version 2.2.20}
3636
\newcommand{\thedate}{}
3737

3838
% these styles get translated in CSS for the HTML version
@@ -716,6 +716,8 @@ \section*{Contributor List}
716716
\item Xavier Van Aubel made several useful corrections in the second
717717
edition.
718718

719+
\item William Murray corrected my definition of floor division.
720+
719721
% ENDCONTRIB
720722

721723
In addition, people who spotted typos or made corrections include
@@ -2430,6 +2432,8 @@ \section{Stack diagrams}
24302432
you create a variable outside of any function, it belongs to
24312433
\verb"__main__".
24322434

2435+
\index{main}
2436+
24332437
Each parameter refers to the same value as its corresponding
24342438
argument. So, {\tt part1} has the same value as
24352439
{\tt line1}, {\tt part2} has the same value as {\tt line2},
@@ -3927,6 +3931,7 @@ \section{Recursion}
39273931

39283932
And then you're back in \verb"__main__". So, the
39293933
total output looks like this:
3934+
\index{main}
39303935

39313936
\begin{verbatim}
39323937
3
@@ -4208,7 +4213,7 @@ \section{Glossary}
42084213
\begin{description}
42094214

42104215
\item[floor division:] An operator, denoted {\tt //}, that divides two
4211-
numbers and rounds down (toward zero) to an integer.
4216+
numbers and rounds down (toward negative infinity) to an integer.
42124217
\index{floor division}
42134218
\index{division!floor}
42144219

@@ -9125,6 +9130,7 @@ \section{Global variables}
91259130
variables, which disappear when their function ends, global variables
91269131
persist from one function call to the next.
91279132
\index{flag}
9133+
\index{main}
91289134
91299135
It is common to use global variables for {\bf flags}; that is,
91309136
boolean variables that indicate (``flag'') whether a condition
@@ -11887,6 +11893,9 @@ \section{Writing modules}
1188711893
case, the test code runs. Otherwise,
1188811894
if the module is being imported, the test code is skipped.
1188911895
11896+
\index{name built-in variable}
11897+
\index{main}
11898+
1189011899
As an exercise, type this example into a file named {\tt wc.py} and run
1189111900
it as a script. Then run the Python interpreter and
1189211901
{\tt import wc}. What is the value of \verb"__name__"

0 commit comments

Comments
 (0)