Wrox Home  

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
624 pages
February 2010
Other Available Formats: E-book
This is a Print-on-Demand title. It will be printed specifically to fill your order. Please allow an additional 8-10 days delivery time. The book is not returnable.
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) )
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:
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??).
14 Error in Text
Exercise in ch 1 N0 1 says to type, "rock a by...."

It should say ?print? in front of ?rock??
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
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
40 Error in Code
There is a typo in the code.


should be:

Printer-Ready Version   Share This
With you wherever you go: pdf + ePub + kindle -- DRM-free