@@ -4052,7 +4052,7 @@ \section{Infinite recursion}
40524052previous chapter. When the error occurs, there are 1000
40534053{\tt recurse} frames on the stack!
40544054
4055- If you write encounter an infinite recursion by accident, review
4055+ If you encounter an infinite recursion by accident, review
40564056your function to confirm that there is a base case that does not
40574057make a recursive call. And if there is a base case, check whether
40584058you are guaranteed to reach it.
@@ -9273,7 +9273,7 @@ \section{Debugging}
92739273
92749274\item [Format the output:] Formatting debugging output
92759275can make it easier to spot an error. We saw an example in
9276- Section~\ref {factdebug }. The {\tt pprint} module provides
9276+ Section~\ref {factdebug }. Another tool you might find useful is the {\tt pprint} module, which provides
92779277a {\tt pprint} function that displays built-in types in
92789278a more human-readable format ({\tt pprint} stands for
92799279`` pretty print'' ).
@@ -14174,7 +14174,7 @@ \section{Comparing cards}
1417414174\index {type!programmer-defined}
1417514175
1417614176\verb "__lt__ " takes two parameters, {\tt self} and {\tt other},
14177- and {\tt True} if {\tt self} is strictly less than {\tt other}.
14177+ and returns {\tt True} if {\tt self} is strictly less than {\tt other}.
1417814178\index {override}
1417914179\index {operator overloading}
1418014180
0 commit comments