Updated through April 5, 2010
Ch. 2
p. 17
"On Windows systemsm"should be
"On Windows systems"
Ch. 3
p. 23
'''\This string starts with a tab and ends with a newline character.\n'''should be
'''\tThis string starts with a tab and ends with a newline character.\n'''
p. 25 In the example for "File objects"
>>> os.chdir(os.path.join("c:","My Documents", "images"))
should be
>>> os.chdir(os.path.join("c:\\","My Documents", "images"))
and
>>> filename = os.path.join("c:", "My Documents",
"test", "myfile")
should be
>>> filename = os.path.join("c:\\", "My Documents", "test", "myfile")
Ch. 4
p. 41 Section 4.6.1 the list should be
abs, divmod, float, hex, long, max, min, oct, pow, roundSection 4.6.2 the list should be
acos, acosh, asin, asinh, atan, atan2, atanh, ceil, copysign, cos, cosh, degrees, e, exp, fabs, factorial, floor, fmod, frexp, fsum, hypot, isinf, isnan, ldexp, log, log10, log1p, modf, pi, pow, radians, sin, sinh, sqrt, tan, tanh, trunc
p. 42 Section 4.6.5 the list should be
acos, acosh, asin, asinh, atan, atanh, cos, cosh, e, exp, isinf, isnan, log, log10, phase, pi, polar, rect, sin, sinh, sqrt, tan, tanh
Ch. 5
p. 62
"You'll find details on these in the appendix."should read
"You'll find details on these in the Python documentation."
Ch. 6
p. 74
"string.uppercase", "string.lowercase" and "string.letters"should be
"ascii_string.uppercase", "ascii_string.lowercase" and "ascii_string.letters"
p. 77 In code comments 3 and 4
"left justification"should be
"right justification"
p. 80
"values from 0 to 256"should be
"values from 0 to 255"
Ch. 8
p. 96
"may be placed on the same line after the semicolon"should read
"may be placed on the same line after the colon"
Ch. 13
p. 170
'>>> book..close()'should be
'>>> book.close()'
Ch. 14
p. 175
"Although youcan’t write this code in C"should read
"Although you can’t write this code in C"
Ch. 17
p. 213
my_button = Button(text="Hello!", foreground="red")")should be
my_button = Button(text="Hello!", foreground="red")
p. 226
"If the regular expression is found in the string, than"should be
"If the regular expression is found in the string, then"
Ch. 18
p. 239
"g makes use of both versions"should be
"g makes use of both version"
Ch. 20
p. 249
"special attribute methods"should be
"special method attributes"
p. 252
"special function attributes"should be
"special method attributes"
Ch. 24
p. 296
"make_server:make_server"should be
"make_server"
"serve_forever:serve_forever"should be
"serve_forever"and
"handle_request:handle_request"should be
"handle_request"