Errata

Intermediate Python Programming - No Longer for Sale

Errata for Intermediate Python Programming - No Longer for Sale

Submit your own errata for this product.

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
Other Digital Version
Advanced slicing
10:10

"Same eleven characters... in opposite order" - Not same but off by one, because the beginning of the slice is inclusive and the end is exclusive.

Note from the Author or Editor:
Text should be corrected as suggested

Anonymous  Apr 28, 2014 
Other Digital Version
4:45
Dicts and Sets

Can't guarantee the order when you iterate over a set or a list

should be

... set or a dict

Note from the Author or Editor:
This needs correcting as suggested by the submitter.

Anonymous  Apr 13, 2014 
Other Digital Version
4:30
Bytestrings

The code for the hexadecimal value FE should be \xfe.
The code shown (\0xfe) is actually the octal value 0 followed by the characters 'x', 'f' and 'e'.

Note from the Author or Editor:
Reporter's description is correct. Script needs to omit the zero digit from the string "\0xfe"

Anonymous  Jan 31, 2015 
Other Digital Version
18:28
Decorators

Why do method calls to both wag() and sniff() output the print statement in wag()? Seems like the decorator has messed up something there.

Note from the Author or Editor:
This occurs because of a complicated issue involving the re-use of a local variable. I will publish a blog entry to explain the issue with the existing code before correcting it.

The bog entry (which also contains the germ of the fix) is at http://holdenweb.blogspot.co.uk/2014/07/closures-arent-easy.html for those who want the gory details.

Anonymous  May 05, 2014