Errata
The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted By | Date submitted | Date corrected |
---|---|---|---|---|---|
Page xxxi The hyperlinks at top of page. |
The hyperlinks direct to the pages for Head First Programming, not Head First Python. Whoops! :) In your browser, replace "hfprog" with "hfpython" and "programming" with "python" to get to the correct sites. The URLs on the printed page are OK, it's the hyperlinks that are wrong. Note from the Author or Editor: |
Paul Barry |
Nov 24, 2010 | Aug 29, 2014 | |
PDF, | Page xxxi links |
You were so kind to mix THIS book with the HeadFirst Programming.In Your book You depend in most places and excersise on web data appended to this book's web page. I would like to ask kindly where on YOUR site are the files tor THIS book? Or do You mine the books files are interchangable? Note from the Author or Editor: |
Anonymous | Nov 28, 2010 | Aug 29, 2014 |
Printed, PDF, | Page xxx Second sentence of paragraph under second heading |
Should "not its operator precedence rules" have been "nor its operator precedence rules"? Both are a little syntactically awkward in that sentence. Note from the Author or Editor: |
mcmark64 | Nov 10, 2011 | Aug 29, 2014 |
PDF, , Other Digital Version | Page 15 Last sentence above, "It?s time to iterate" |
Missing "it" Note from the Author or Editor: |
Anonymous | Feb 02, 2011 | May 11, 2011 |
Printed, PDF, | Page 16 In the for loop usage graphic, in the first box |
In the for loop usage graphic, the one that uses the large font size. In the first box after "for" it is written "target identifer" when it should be "target identifier". Note from the Author or Editor: |
Matt Muzzi | Jul 07, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 19 End sentence in paragraph titled "Yes, that?s correct: the loop code isn?t complete." |
"What?s we need here is some" should be "What we need here is some" Note from the Author or Editor: |
Jeff Blaine | Nov 29, 2010 | May 11, 2011 |
Printed, PDF, | Page 19 In comment on last line of code in the "An IDLE Session" box |
The comment: The "for" loop prints each item of the outer loop ONLY. Should read: The "for" loop prints each item of the outer list ONLY. (I.e., change "outer loop" to "outer list".) Note from the Author or Editor: |
mcmark64 | Sep 15, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 20 First line of code in "An IDLE Session" box |
The "single quotes" in the first line of code in the "An IDLE Session" box which assigns a list to the "names" variable are not of the proper type. If you cut and paste this line of code into the IDLE shell you will get a syntax error. Note from the Author or Editor: |
mcmark64 | Sep 15, 2011 | Aug 29, 2014 |
Printed | Page 21 top |
Please be careful to point out that indents in IDLE are really important. The following function, when I used returns to put the next line of code in will produce a syntax error on 'else'. You have to put the indent (as below) back again to line up with if. It took me a while to work out! Note from the Author or Editor: |
Jonathan Richards | Apr 16, 2016 | |
Printed, PDF, | Page 29 Comment in the top right corner of page |
Missing apostrophe: "start of your functions code suite" should be "start of your function's code suite". Note from the Author or Editor: |
mcmark64 | Sep 15, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 31 Penultimate sentence |
Missing apostrophe: "in your (and others) programs" should be "in your (and others') programs". Note from the Author or Editor: |
mcmark64 | Sep 15, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 32 10th bullet point |
The phrase "or count the number of items" should be "or count of the number of items" (or possibly "or counts the number of items"). Note from the Author or Editor: |
mcmark64 | Sep 15, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 38 Last sentence of third answer |
Typo: "to remember when you actually put it" should be "to remember where you actually put it". Note from the Author or Editor: |
mcmark64 | Sep 17, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 41 Step 4 |
In step 4 (Install your distribution into your local copy of Python) Note from the Author or Editor: |
Anonymous | Nov 29, 2010 | May 11, 2011 |
Printed, PDF, | Page 41 Step 4 |
Command 'sudo python3 setup.py install' will not work on Windows platform. A note earlier on the page (upper right corner) discusses using 'c:\python31\python.exe' (windows) instead of 'python3' (linux/osx) but no mention of *not* using 'sudo' as well. Note from the Author or Editor: |
Monte Milanuk | Dec 02, 2010 | May 11, 2011 |
Printed, PDF, | Page 41 handwrite at top right |
The text needs to be much clearer for windows users that they need to open the command prompt and, using cd, change the directory to the one where the nester folder is located- this is the Windows equivalent of Linux' opening 'a terminal window within your nester folder'. Note from the Author or Editor: |
Anonymous | Sep 24, 2011 | |
Printed, PDF, | Page 42 picture |
I am using python 3.2.1 on Mac OS. Note from the Author or Editor: |
Kweon | Jul 20, 2011 | |
Printed | Page 43 The Note in middle of page |
>>> import nester.py Note from the Author or Editor: |
Richard Moores | Jan 18, 2011 | |
Printed, PDF, | Page 47 Chapter 2 in general |
The good folk over at PyPI have created a new "testing site" for Python modules: http://testpypi.python.org/pypi - this is the site you should use to practice uploading as per Chapter 2 of the book. There's a tonne of nester modules on the real, live PyPI site that really shouldn't be there (as the world only needs *one* nester module). If you use the testing site when doing the exercises in Chapter 2, we can all keep the main site free from unnecessary copies of the nester module. Note from the Author or Editor: |
Paul Barry | May 09, 2012 | |
Printed, PDF, | Page 49 2nd question/answer |
Q: And when I press F5 in IDLE?s edit window, it?s as if the module?s code is imported with an import statement, right? Note from the Author or Editor: |
mcmark64 | Sep 21, 2011 | |
Printed, PDF | Page 51 Middle section, 1st sentence |
The first sentence in the section under "Yeah, that might just work.", i.e., the sentence that ends with "to perform the nested printing", is missing a period at the end. Note from the Author or Editor: |
mcmark64 | Sep 21, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 55 Exercise box, 2nd comment, 2nd sentence |
Erroneous apostrophe "it's" should be "its". Note from the Author or Editor: |
Corinne Welsh | Sep 11, 2011 | Aug 29, 2014 |
Printed | Page 56 in Exercise Solution, 2nd line from bottom |
change print("\t", end=") Note from the Author or Editor: |
Richard Moores | Jan 21, 2011 | |
Printed, PDF, | Page 56 Exercise Solution box, 2nd comment, 2nd sentence |
Erroneous apostrophe "it's" should be "its". Note from the Author or Editor: |
Corinne Welsh | Sep 11, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 58 Rest of the chapter |
By the time one hits this point in the book, the print_lol function has been updated, but there is no mention of re-installing the updated version into the local version of Python. Therefore the code listed at the top of page 58 will not work. In subsequent sections the book talks about updating PyPI, but it still doesn't mention updating the local version of the nester module. Note from the Author or Editor: |
mcmark64 | Sep 22, 2011 | |
Printed, PDF, ePub, Mobi, | Page 58 first code box |
text printed in handwriting should be "These two lines look OK." instead of "Thes two lines look OK." Note from the Author or Editor: |
nenad | Oct 11, 2014 | |
Printed, PDF, | Page 62 2nd paragraph |
"In your rush to release the LATES and greatest version of your module" should be "In your rush to release the LATEST and greatest version of your module" Note from the Author or Editor: |
Joseph | Nov 22, 2010 | May 11, 2011 |
Printed, PDF, | Page 62 2nd thought bubble |
Erroneous apostrophe: "TypeError's" should be "TypeErrors". Note from the Author or Editor: |
Corinne Welsh | Sep 04, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 64 An Idle session, 1st paragraph, 3rd sentence |
"Start be..." should be "Start by..." Note from the Author or Editor: |
Corinne Welsh | Sep 11, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 68 Exercise Solution #3 |
Says to use "python3 setup.py sdisk upload" to upload changes to PyPi website. Note from the Author or Editor: |
Joe Casper | Nov 22, 2010 | May 11, 2011 |
Other Digital Version | 68 First line of code |
The *code sample* for chapter 1, page 68 give "indent=True" while the ebook page gives "indent=False". Note from the Author or Editor: |
elliottwinslow | Aug 10, 2012 | Aug 29, 2014 |
Printed, PDF, | Page 77 Comment on right under last code box |
There is an extraneous colon in the comment which reads: ... "line_spoken": is assigned the string "Is this the right room for an argument?" Remove the the colon. Note from the Author or Editor: |
mcmark64 | Nov 09, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 96 first balloon |
you --> your Note from the Author or Editor: |
Richard Moores | Jan 23, 2011 | May 11, 2011 |
Printed, PDF, | Page 100 Note box #1 |
Note box #1 begins: "The code on the RIGHT starts by...". It should say: "The code on the LEFT starts by..." Note from the Author or Editor: |
Joseph | Nov 23, 2010 | May 11, 2011 |
Printed, PDF, | Page 101 Para 2 |
"occured earlier when your were..." should be "when you were" Note from the Author or Editor: |
Anonymous | Nov 29, 2010 | May 11, 2011 |
Printed, PDF, | Page 101 second paragraph - first sentence |
it's ignored or *a* error message is ... Note from the Author or Editor: |
Brian Ball | Jan 08, 2011 | May 11, 2011 |
Printed, PDF, | Page 101 Para 2 |
There is already an errata item for this, but it is listed as having been corrected on May 11, 2011. However, it was *not* corrected. (Other typos with that date have been corrected.) The phrase "when your were" should have been changed to "when you were." Note from the Author or Editor: |
mcmark64 | Sep 22, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 102 paragraph under sample code |
Of course if *an* different type of... Note from the Author or Editor: |
Brian Ball | Jan 08, 2011 | May 11, 2011 |
Printed, PDF, | Page 116 Header |
On page 116 at the top left corner of the screen it says, "no dumb questiohns," where it should say, "no dumb questions." Note from the Author or Editor: |
Luke Fox | Feb 05, 2011 | May 11, 2011 |
Printed, PDF | Page 126 Section title at top of page |
The underscore which should be between "print" and "lol," i.e., "print_lol" appears underneath the 'n' and 't' in the word "print." Note from the Author or Editor: |
mcmark64 | Dec 13, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 126 Third sentence of comment for print_lol function |
The word "it's" should be "its" in the sentence ending with "printed to the screen on it's own line." Note from the Author or Editor: |
mcmark64 | Dec 13, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 127 2nd line of the 2nd paragraph |
"...have been removed from this COD, but be sure to update your comments..." COD should be CODE Note from the Author or Editor: |
Joseph | Nov 23, 2010 | May 11, 2011 |
Printed, PDF, | Page 128, 129 Step 1 |
Adding fourth argument with default value of 'fh=sys.stdout' causes program to fail with the following trace back: Note from the Author or Editor: |
Monte Milanuk | Dec 02, 2010 | May 11, 2011 |
Printed, PDF, | Page 128 |
Technically, "print" doesn't get changed to "print_lol". It gets changed to "nester.print_lol" because the imported module is "nester" and not "from nester import print_lol" according to your answers on page 128. Note from the Author or Editor: |
Jeff Blaine | Dec 17, 2010 | Aug 29, 2014 |
Printed, PDF, | Page 136 Line starting with "Next up:" |
There is no space between the two sentences on this line: to unpickle.Create an empty list ... Note from the Author or Editor: |
mcmark64 | Dec 13, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 136 Line starting with "Yes, almost too exciting for words" |
The period after the word created should be a comma. Note from the Author or Editor: |
mcmark64 | Dec 13, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 159 Bottom |
"As expected, the outout matches that from earlier." Note from the Author or Editor: |
Jeff Blaine | Dec 17, 2010 | May 11, 2011 |
Printed | Page 171 Middle of the page |
On page 171, "Test Drive," the image shown is presumably incorrect. The image for the old code is shown, whereas the Test Drive image should be of the newly created function get_coach_data() used in action instead of the old with open() loops. Note from the Author or Editor: |
Luke Fox | Feb 12, 2011 | Aug 29, 2014 |
Printed | Page 191 Middle of the page, in code example |
On page 191 in the code block that begins with, "class Athlete," there is a grammatical error. A comment states "# The code to initialize a "Athlete" object," where "a" should be "an." Note from the Author or Editor: |
Luke Fox | Feb 12, 2011 | May 11, 2011 |
Printed, PDF, | Page 192 2nd paragraph |
Athlete().__init__(a) Note from the Author or Editor: |
Anonymous | Feb 23, 2011 | May 11, 2011 |
Printed, PDF, ePub, Mobi, | Page 197-225 Various Places |
Not sure if I'm missing something, but what happened to the sanitize() function between pages 197 and 225? Note from the Author or Editor: |
Shu Chow | Jan 29, 2013 | Aug 29, 2014 |
Printed, PDF, | Page 198 Last-but-one question |
james.times.append(['1.21', '2.22']) Note from the Author or Editor: |
spiceisland | Dec 04, 2010 | May 11, 2011 |
Printed, PDF, | Page 200 Sharpen your pencil Solution |
The text in the "Sharpen your pencil Solution" contains printers quotes instead of code quotes. Note from the Author or Editor: |
mcmark64 | Dec 16, 2011 | |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 208 new test code at the bottom of the page |
The test code contains typographical quotes instead of programmer quotes. Note from the Author or Editor: |
mcmark64 | Dec 16, 2011 | |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 209 last question |
The phrase "you can import the into your code" should be "you can import it into your code". Note from the Author or Editor: |
mcmark64 | Dec 16, 2011 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 212 third from last bullet point |
The phrase "in order to associate it data with its instance" should be "in order to associate its data with its instance." Note from the Author or Editor: |
mcmark64 | Dec 16, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 217 second sentence of first paragraph under substeps |
The phrase "and sent it back to the browser" should be "and send it back to the browser". Note from the Author or Editor: |
mcmark64 | Dec 17, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 223 2nd line in code: "from athletelist import AthleteList" |
Code assumes you have put the AthleteList in a module file but there was no instruction to do this in the previous chapter. There was only mention that one "could" do it on page 209 at the end of chapter 6. Note from the Author or Editor: |
Anonymous | Dec 14, 2010 | Aug 29, 2014 |
Printed, PDF, | Page 224 code for put_to_store function |
The error message "File error (put_and_store):" should be "File error (put_to_store):". Note from the Author or Editor: |
mcmark64 | Dec 17, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 225 Beginning of second code block |
Using the files 'sarah.txt', 'james.txt', etc. in the example as shown will not give the results as depicted - there is no name/dob data in those files; need to use 'sarah2.txt', 'james2.txt, etc. Note from the Author or Editor: |
Monte Milanuk | Dec 06, 2010 | Aug 29, 2014 |
Printed, PDF, | Page 231 description of function "header" |
The phrase "(H1, H2, H2, and so on)" should be "(H1, H2, H3, and so on)". Note from the Author or Editor: |
mcmark64 | Dec 17, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 233 code for testing u_list function |
The code for testing the u_list function is missing ">>> " and is printed in blue (in the PDF) when it should be black, i.e., Note from the Author or Editor: |
mcmark64 | Dec 17, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 234 First line of second paragraph |
'wedapp' should be 'webapp' Note from the Author or Editor: |
Monte Milanuk | Dec 06, 2010 | May 11, 2011 |
Printed, PDF, , Other Digital Version | Page 234 lower left corner |
The files for chapter 7 inlcude the stylesheet "coach.css". Since it comes directly from "Segway'n USA" in "Head First HTML with CSS & XHTML" it requests an image called "backpack.gif". Note from the Author or Editor: |
Anonymous | Apr 29, 2011 | |
Printed, PDF, | Page 239 Watch It box |
On my system (Lubuntu) I have to replace: Note from the Author or Editor: |
Raphael Chambers | Nov 24, 2010 | |
Page 239 "watch it" section top of the page |
The shebang there is: Note from the Author or Editor: |
wujek | May 14, 2011 | ||
Printed, PDF, | Page 244 1st paragraph, 2nd sentence |
The phrase "your need to generate a new HTML page" should be "you need to generate a new HTML page". Note from the Author or Editor: |
mcmark64 | Dec 17, 2011 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 246 Last 2 lines |
Problem with YATE & following line of code: Note from the Author or Editor: |
Anonymous | Apr 03, 2012 | |
Printed, PDF, | Page 258 Sharpen your pencil Solution |
The most promising site for the search now is: Note from the Author or Editor: |
mcmark64 | Dec 17, 2011 | |
Printed, PDF, | Page 260 First sentence. |
"Understandably, the coach won't let your" Note from the Author or Editor: |
terracoda | Nov 03, 2011 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 260-263 Chapter 8 |
Note from the Author or Editor: |
Anonymous | Feb 18, 2016 | |
Printed, PDF, | Page 262 Bottom right-hand corner |
Change: Note from the Author or Editor: |
Anonymous | Feb 26, 2011 | May 11, 2011 |
Printed, PDF, | Page 264 Bottom of page |
With the latest version of Google's Android SDK, some of the utilities in the "tools" folder have been moved to a new folder called "platform-tools". One of the tools impacted is "adb". So, if you are using an Android SDK that is newer than the one in the book, instead of using the "tools/adb" command, use the "platform-tools/adb" command instead. |
Paul Barry |
Dec 28, 2010 | Aug 29, 2014 |
Printed, PDF, | Page 264 First paragrpah. Last sentence. First word. |
"Simplty tap" should be "Simply tap" Note from the Author or Editor: |
terracoda | Nov 02, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 266 7th response |
The phrase "You need an data interchange format" should be "You need a data interchange format". Note from the Author or Editor: |
mcmark64 | Dec 17, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 270 3rd line |
'all' should be 'call' Note from the Author or Editor: |
Monte Milanuk | Dec 10, 2010 | May 11, 2011 |
Page 270 "Sharpen your pencil" top of the page |
The hand-written code says: Note from the Author or Editor: |
wujek | May 14, 2011 | ||
Printed, PDF, | Page 270 Sharpen your pencil Solution |
The instructions for this exercise state: "returns the list of athlete names as a string." But the function as written returns a list of strings not a list "as a string." Note from the Author or Editor: |
mcmark64 | Dec 17, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 275 quit_msg |
The string for quit_msg contains a typographical single quote. Note from the Author or Editor: |
mcmark64 | Dec 17, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 277 Relax Box Title. Second word. |
"If you app doesn't run" Note from the Author or Editor: |
terracoda | Nov 03, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 279 First task, second paragraph |
Change: Note from the Author or Editor: |
spiceisland | Dec 11, 2010 | May 11, 2011 |
Printed, PDF, | Page 279-280 Sharpen your pencil Exercise |
It is unclear why the data being sent to the web server via the send_to_server() function is formatted as a dictionary. It is also not mentioned that the data returned by the web server is in the form of a dictionary. It would be better to review the code for the generate_data.py script before this exercise is given. Note from the Author or Editor: |
mcmark64 | Dec 17, 2011 | |
Printed, PDF, | Page 279-287 entire chapter section |
This section of Chapter 8 (pp. 279-287) is a little difficult to follow page to page. For example, the Sharpen your Pencil Solution given on page 280 assumes you know that your data is being returned as a dictionary, but that is not discussed until page 285, and the listing of the complete Android app on pp. 281-282 includes changes to the athlete_title that are not mentioned until page 286 (Do this!). Hence a few of my previous errata submissions are not errata but misunderstanding. Note from the Author or Editor: |
mcmark64 | Dec 17, 2011 | |
Printed, PDF, | Page 280 & 282 athlete_title |
The athlete_title string shown on page 280: Note from the Author or Editor: |
mcmark64 | Dec 17, 2011 | |
Printed, PDF, | Page 281 The athlete?s data CGI script |
The call to as_dict is missing from the last line of the athlete?s data CGI script listing, i.e., the last line should be: Note from the Author or Editor: |
mcmark64 | Dec 17, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 284 1st paragraph |
typo: change "messgage" to "message" Note from the Author or Editor: |
Anonymous | Jul 11, 2013 | Aug 29, 2014 |
Printed, PDF, | Page 285-286 Throughout both pages |
Descriptive text talks about adding a "to_dict" method to the AthleteList class. Note from the Author or Editor: |
spiceisland | Dec 11, 2010 | May 11, 2011 |
Printed, PDF, | Page 286 Do this! box. First sentence. |
The filename has a dash, but should have an underscore. Note from the Author or Editor: |
Taliesin L. Smith | Nov 03, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 291 Last bullet point |
In the last bullet point the phrase "input streams" should be "input/output streams". Note from the Author or Editor: |
mcmark64 | Dec 17, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 296 Top of page. Second sentence. |
"Take a look a this" Note from the Author or Editor: |
terracoda | Nov 09, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 299 1st line |
should be 'test_form.py' not 'test-form.py' Note from the Author or Editor: |
Monte Milanuk | Dec 10, 2010 | May 11, 2011 |
Printed, PDF, | Page 302 Code on page |
The downloaded page302.py file in chapter9.zip doesn't match the text in the book. It looks like it matches the add_timing_data.py file from later in the chapter. Note from the Author or Editor: |
Clifton Shak | Apr 01, 2011 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 304 Text on right side of image |
The phrase "bring ups" should be "brings up". Note from the Author or Editor: |
Mark A. McLaughlin | Jul 07, 2012 | Aug 29, 2014 |
Printed, PDF, | Page 310 First Answer, Last Sentence |
The phrase "we might have been designed" should be "we might have designed." Note from the Author or Editor: |
mcmark64 | Jan 06, 2012 | Aug 29, 2014 |
Printed | Page 310 1st para |
First sentence following "Hooking into the "with" Statement": Note from the Author or Editor: |
Anonymous | Jan 16, 2019 | |
Printed, PDF, | Page 314 In the flow chart under Create. |
connecton Note from the Author or Editor: |
terracoda | Nov 09, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 315 2nd-to-last paragraph |
You can include code like this in your program. It is also possible to interact with ==> you <== SQLite data from within IDLE?s shell. Whichever option you choose, you are interacting with your database using Python. Note from the Author or Editor: |
Brent Bollmeier | Mar 08, 2011 | May 11, 2011 |
Printed, PDF, | Page 317 Second to last paragraph. Last sentence. |
"because that have different ID values." Note from the Author or Editor: |
terracoda | Nov 09, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 320 Code Magnet Solution |
On Ubuntu machines (unconfirmed for any other distros), an absolute path to the sqlite database file must be provided instead of a relative path. Note from the Author or Editor: |
Ygam Retuta | Dec 09, 2010 | Aug 29, 2014 |
Printed | Page 324 4th paragraph |
In sentence that describes overriding the dunder for the greater-than operator (>), shouldn't it say to override the __gt__ method (not the __ge__ method)? Note from the Author or Editor: |
Anonymous | Jan 16, 2019 | |
Printed, PDF, | Page 333 Code example for get_athlete_from_id() |
This code only retrieves the first three values from the timing-data, whatever order they are in. This is fine for the values converted from the original text files (which happen to be in the correct order), but values added afterwards (see later in this chapter) may be better times yet not chosen for retrieval. Note from the Author or Editor: |
spiceisland | Dec 19, 2010 | May 11, 2011 |
Printed, PDF, | Page 333 1st paragraph under code box |
"This function is a more involved than" should be "This function is more involved than". Note from the Author or Editor: |
mcmark64 | Jan 13, 2012 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 333 last sentence of first paragraph under the code block |
There is an extra period in the text. "This is coming along. nicely." should be "This is coming along nicely." Note from the Author or Editor: |
Mark A. McLaughlin | Jul 07, 2012 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, | Page 337,338 athletes = athletemodel.get_from_store() |
On both, generate_timing_data.py (page 337) and generate_data.py (page 338), athletes is declared as: athletes = athletemodel.get_from_store(). However, the function get_from_store() was eliminated from athletemodel.py on page 331 and it was not replaced. I believe that this function needs to be recreated and it should return a dictionary that contains the data of all the athletes, or both generate_timing_data.py and generate_data.py need to be modified. Note from the Author or Editor: |
Miguel Brito | Mar 12, 2014 | |
Printed, PDF, | Page 339 Sharpen Pencil Solution for generate_timing_data.py |
This is a repeat of the problem found by Ygam Retuta for page 340, but for generate_timing_data.py instead of generate_data.py ... instead of: Note from the Author or Editor: |
spiceisland | Dec 12, 2010 | May 11, 2011 |
Printed, PDF, | Page 340 Sharpen Pencil Solution for generate_data.py |
instead of: Note from the Author or Editor: |
Ygam Retuta | Dec 09, 2010 | May 11, 2011 |
Printed, PDF, | Page 340 Sharpen Pencil Solution for generate_data.py |
The final print() statement seems to be a hangover from the previous code. Now have an 'athlete' rather than a list of 'athletes'. Also, the 'athlete' is already in the form of a dictionary and does not require further conversion. So, change: Note from the Author or Editor: |
spiceisland | Dec 12, 2010 | May 11, 2011 |
Printed, PDF, | Page 340 Sharpen Pencil solution for generate_data.py |
A previous errata pointed out that athlete_name should be changed to athlete_id. However, it was accidentally changed to athlete_is instead of athlete_id. Note from the Author or Editor: |
mcmark64 | Nov 09, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 340 Sharpen Pencil solution for generate_data.py |
In a previous errata submission the last line of code was changed to read: "print(json.dumps(athlete))". However, in the updated text the second closing parenthesis is missing. Note from the Author or Editor: |
mcmark64 | Nov 09, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 341 Frst sentence |
"you SQLite database" Note from the Author or Editor: |
terracoda | Nov 10, 2011 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 341 end of first sentence |
The phrase "the same folder your index.html file" should be "the same folder as your index.html file". Add the word "as". Note from the Author or Editor: |
Mark A. McLaughlin | Jul 08, 2012 | Aug 29, 2014 |
Printed, PDF, | Page 342 Last sentence. First line. |
"amend you Android app" Note from the Author or Editor: |
terracoda | Nov 10, 2011 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 345-347 dialog box timing message |
The timing message would be more grammatically correct if it included the preposition "for", i.e., 'Provide a new timing value for '. Note from the Author or Editor: |
Mark A. McLaughlin | Jul 08, 2012 | Aug 29, 2014 |
Printed, PDF, | Page 348 Code example for add_timing_data.py |
The following line: Note from the Author or Editor: |
spiceisland | Dec 19, 2010 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 348 second sentence of third paragraph after screenshot |
The phrase "it's database API" should be "its database API." Note from the Author or Editor: |
Mark A. McLaughlin | Jul 08, 2012 | Aug 29, 2014 |
Printed, PDF, | Page 350 Database Lingo box. Second bullet. |
"rows or data" Note from the Author or Editor: |
terracoda | Nov 10, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 350 Bullet Points box. First bullet. |
Are methods case sensitive? Note from the Author or Editor: |
terracoda | Nov 10, 2011 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 350 first paragraph |
The phrase "your evey expanding Python toolbox" should be "your ever-expanding Python toolbox." (Two changes: y changed to r and the addition of a hyphen.) Note from the Author or Editor: |
Mark A. McLaughlin | Jul 08, 2012 | Aug 29, 2014 |
Printed, PDF, | Page 351 End of third line. |
possibly ten of thousands Note from the Author or Editor: |
terracoda | Nov 14, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 355 2nd paragraph |
SKD should be SDK in first line "Download the GAE Python SKD..." Note from the Author or Editor: |
Anonymous | Nov 20, 2011 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 355 throughout the page |
App Engine now supports both Python 2.5 and 2.7. Note from the Author or Editor: |
Mark A. McLaughlin | Jul 08, 2012 | |
Printed | Page 356 second code box |
Two issues with the code box containing: Note from the Author or Editor: |
Douglas Calhoun | Jun 26, 2011 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 357 1st paragraph, 5th sentence |
Change "browse and select your web app?s folder" to "browse to and select your webapp?s folder." Note from the Author or Editor: |
Mark A. McLaughlin | Jul 08, 2012 | Aug 29, 2014 |
Printed, PDF, | Page 360 Thought bubble. Third line. |
your think "column," Note from the Author or Editor: |
terracoda | Nov 14, 2011 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 360 1st Paragraph |
The phrase "the column type associated piece of data stored in a row" should be "the column type associated with a piece of data stored in a row." Note from the Author or Editor: |
Mark A. McLaughlin | Jul 14, 2012 | Aug 29, 2014 |
Printed, PDF, | Page 363 Last paragraph. Last sentence. |
"rather that using" Note from the Author or Editor: |
terracoda | Nov 10, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 366 2nd paragraph, 1st sentence |
The words "with" and "which" appear to have been swapped: Note from the Author or Editor: |
Anonymous | Nov 20, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 368 2nd code snippet, 2nd hand-written note |
The note pointing to the line Note from the Author or Editor: |
Anonymous | Nov 20, 2011 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 370 last sentence to the left of the code block |
Change "an new" to "a new." Note from the Author or Editor: |
Mark A. McLaughlin | Jul 14, 2012 | Aug 29, 2014 |
Printed, PDF, | Page 371 First paragrpah. Third line. |
No space after period that ends the sentence in the middle of the line. Note from the Author or Editor: |
terracoda | Nov 14, 2011 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 372 1st Paragraph |
No space between third and fourth sentences: "too.Your" (There is an errata report for this typo on page 371 but not one for page 372.) Note from the Author or Editor: |
Mark A. McLaughlin | Jul 14, 2012 | Aug 29, 2014 |
Printed | Page 374 last line |
"...adding the following lines to the handlers section of your app.yaml file: Note from the Author or Editor: |
Douglas Calhoun | Jun 26, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 374 Last paragraph. Last sentence. |
handers Note from the Author or Editor: |
terracoda | Nov 14, 2011 | Aug 29, 2014 |
Printed, PDF, | Page 384 2nd paragraph |
"If you make it too hard for your users to enter data into your system, things will likely things break." Note from the Author or Editor: |
Monte Milanuk | Dec 02, 2010 | May 11, 2011 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 385 top note on right-hand side |
Phrase "you?ll need to revert one of the options" should be "you?ll need to revert to one of the options." Note from the Author or Editor: |
Mark A. McLaughlin | Jul 14, 2012 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 386 1st para 2nd sentence |
Change "brwoser" to "browser". Note from the Author or Editor: |
Mark A. McLaughlin | Jul 14, 2012 | Aug 29, 2014 |
Printed, PDF, | Page 387 2nd paragraph |
One my Linux system (Ubuntu 10.10) with GAE v1.4.0, the GAE "admin" URL seems to be: Note from the Author or Editor: |
spiceisland | Dec 21, 2010 | |
Printed, PDF, | Page 389 2nd paragraph |
Change "and he isn?t not logged in" to "and he isn't logged in". Note from the Author or Editor: |
spiceisland | Dec 21, 2010 | May 11, 2011 |
Printed | Page 395 3rd bullet point, right box |
"...is based on the one use in the..." : "use" -> "used" Note from the Author or Editor: |
Douglas Calhoun | Jun 26, 2011 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 401 last sentence in first comment above the data listing |
Because the[y] have no affect on the timing data, Note from the Author or Editor: |
mcmark64 | Aug 23, 2012 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 402 2nd sentence in 1st paragraph |
"might help here?" Note from the Author or Editor: |
mcmark64 | Aug 23, 2012 | Aug 29, 2014 |
Printed, PDF, | Page 406 Last paragraph |
Change "strucutre" to "structure". Note from the Author or Editor: |
spiceisland | Dec 21, 2010 | May 11, 2011 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 407 middle paragraph |
"associated columns headings" Note from the Author or Editor: |
mcmark64 | Aug 23, 2012 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 409 2nd to last sentence |
the comprehensions results," Note from the Author or Editor: |
mcmark64 | Aug 23, 2012 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 414 entire page |
The book never says to add lines to the test script for searching using the given user input. Note from the Author or Editor: |
mcmark64 | Aug 23, 2012 | Aug 29, 2014 |
Printed, PDF, | Page 417 Last sentence |
"Let's try it with some of data..." should be "Let's try it with some data..." Note from the Author or Editor: |
Anonymous | Nov 21, 2011 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 420 first and fourth code examples at bottom of page |
wrong kind of single quotes on entries: '59:59?, '56:29? Note from the Author or Editor: |
mcmark64 | Aug 23, 2012 | Aug 29, 2014 |
PDF, , Other Digital Version | Page 421 Last line of the example code |
Change "The predicited time running" to "The predicted time running". Note from the Author or Editor: |
spiceisland | Dec 21, 2010 | Aug 29, 2014 |
Printed, PDF, | Page 422, 423, 426, 429 pp. 422-3, 429 IDLE screenshots, p. 426 Sharpen your pencil |
As with p. 421, 'predicited' should be 'predicted' Note from the Author or Editor: |
Anonymous | Nov 21, 2011 | Aug 29, 2014 |
PDF, ePub, Mobi, , Other Digital Version | Page 423 2nd to last paragraph |
"the club?s Android?s phones." Note from the Author or Editor: |
mcmark64 | Aug 23, 2012 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 428 1st paragraph, 2nd and 3rd sentences |
Space missing between sentences: code.You Note from the Author or Editor: |
mcmark64 | Aug 22, 2012 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 428 2nd comment on rhs of page |
Ask your user *to* enter the recorded time. Note from the Author or Editor: |
mcmark64 | Aug 22, 2012 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 436 2nd paragraph, 3rd sentence |
comes in various licencing flavor Note from the Author or Editor: |
mcmark64 | Aug 22, 2012 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 436 last paragraph, first sentence |
course,there Note from the Author or Editor: |
mcmark64 | Aug 22, 2012 | Aug 29, 2014 |
Printed | Page 438 3rd sentence of paragraph 3 |
These exist in separate files from *you* code and allow... Note from the Author or Editor: |
Brian Ball | Jan 08, 2011 | May 11, 2011 |
Printed, PDF, | Page 438 second to last paragraph - first sentence |
.... operating systems command line Note from the Author or Editor: |
Brian Ball | Jan 08, 2011 | May 11, 2011 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 438 4th paragraph, 3rd sentence |
add it to your modules documentation strings Note from the Author or Editor: |
mcmark64 | Aug 22, 2012 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 440 1st comment on right-hand side |
Jeff Friedl?s regular expression ?bible?, which is well worth a look if you want to learn more. Note from the Author or Editor: |
mcmark64 | Aug 23, 2012 | Aug 29, 2014 |
Printed, PDF, ePub, Mobi, , Other Digital Version | Page 443 last paragraph, first sentence |
PyQT is actually written PyQt (with a lowercase 't'). Note from the Author or Editor: |
mcmark64 | Aug 23, 2012 | Aug 29, 2014 |