Object-Oriented Programming in Python
Errata for Chapter 13
This errata is for the first printing (published 29 October 2007).
Page 456, code for
__contains__
First line of body should read
path =
self
._tracePath(value)
Page 459, Figure 13.11
Line 20 should read
path =
self
._tracePath(value)
Page 460, Figure 13.11 continuation
Line 61 should read
endOfPath._promoteChild(endOfPath._left)
Line 63 should read
endOfPath._element = endOfPath._left.pop()
On line 66, a better style is
if
index
is
None
:
(as was used on page 352)