small medium large xlarge

Errata for Practical Programming (2nd edition)


The latest version of the book is P3.0, released 10 months ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P1.0 (10-Jun-14)
PDF page: 1

Would it be possible or desirable to provide the Exercise Solutions in a PDF or some other easily printable form? --David @ Support

  • Reported in: P2.0 (18-Dec-15)
Paper page: 11
It says "With // , the result is rounded down to the nearest whole number", when in reality it returns the floor of the normal division beetween the f...more...
  • Reported in: P3.0 (01-May-16)
PDF page: 24

((350-32) x (5/9)) /20 = 8.83333333333333 rather than 7.83333333333333 for oven-heating time.--George Richards

  • Reported in: P3.0 (01-May-16)
PDF page: 24

Erratum submitted in error. (-20) missing from numerator which changes result from 8.833.... to 7.833.... My apologies.--George Richards

  • Reported in: P3.0 (07-Oct-16)
Paper page: 103
I'm using PY3.5.2. in the grey example "Restoring a Module," I tried to follow the steps in my Shell. The math=imp.reload(math) line does not reset p...more...
  • Reported in: P3.0 (07-Oct-16)
Paper page: 111
Figure 4-The doctest Module Running the Tests from Module temperature_program is the wrong snapshot... it is showing a test of the program n...more...
  • Reported in: P3.0 (07-Oct-16)
Paper page: 113
Figure 6--Failure Message for doctest is showing test result from the program and not the described module. The expla...more...
  • Reported in: P1.0 (22-Nov-13)
Paper page: 174
(in "The with Statement" section) A misleading oversimplification is given re. the purpose of the 'with' statement in Python: The book states that it...more...
  • Reported in: P1.0 (26-Sep-13)
PDF page: 186

In function definition smallest_value_skip there is no check for a '-' in the first data line after the header.

  • Reported in: P1.0 (11-Feb-14)
PDF page: 220
This is not an error in the book, but for the explanation of exercise 5 on page 220 (Storing Data Using Other Collection Types). For the return, yo...more...
  • Reported in: P1.0 (30-Oct-13)
PDF page: 225

In "Find, Remove, Find" it is not the re-insertion that is the problem, but the removal, as min2 is obtained before the re-insertion.

  • Reported in: P1.0 (02-Dec-13)
PDF page: 360
Nowhere in this chapter are there instructions to close the connection to the database when you're finished working with it: con.close() Had to ...more...
  • Reported in: P1.0 (07-Feb-14)
PDF page: 371
Paper page: 367
In the index for "backslash", only the meaning of backslash in Windows directory paths is listed (P.174). The use of backslash as line-continuation (...more...