Topic: Open Source

Beginning Python: Using Python 2.6 and Python 3.1 (0470414634) cover image

Beginning Python: Using Python 2.6 and Python 3.1

James Payne
ISBN: 978-0-470-41463-7
Paperback
624 pages
February 2010
Other Available Formats: E-book
If you are an instructor, you may request an evaluation copy for this title.
Paperback Version: US $39.99 Add to Cart

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
6 Error in Code
Current syntax:
raise TypeError, "add_one requires a string, given a %s" % type (food_name)

Correct syntax:
raise TypeError( "add_one requires a string, given a %s" % type (food_name) )
05/28/2010
11 Error in Text
In the Try It Out section, under the 2nd code example (under header ?You could also just skip??):

"John" "Everyman"
should be:
'JohnEveryman'
not:
JohnEveryman
05/02/2011
12 Error in Code
In the code under ?Joining Strings with the Print() Function?

The ?p? in Print(?John??) function should be lower case? print(?John??).
05/02/2011
14 Error in Text
Exercise in ch 1 N0 1 says to type, "rock a by...."

It should say ?print? in front of ?rock??
10/20/2010
23 Error in Code
Under?some surprises? heading:

Update for Python 3.1.3 windows installation:
For >>>4023 - 22.4
Answer should be: 4000.6
not: 4000.5999999999999
05/02/2011
27 Error in Text
"It may seem like a mistake that the second number printed is 12 when you ? ve provided the string with a 10. However, octal only has 8 numbers (0 to 7), so from 0 to 10 in octal is 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11."

When using the octal counting system you do not actually count the '8' aswell. So one should count as followed: 0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12
08/27/2010
40 Error in Code
There is a typo in the code.

menu_specials.value()

should be:

menu_specials.values()
07/15/2010