Wednesday, May 20, 2009

Chapter 8 -- Exercise 8.11

Question 8.11 asks you to provide the sort function a cmp function rather than a keyword function. This is old school. In Python 3.0 cmp was removed.

Friday, May 8, 2009

Listing 12.1

Lines 4, 6, and 16 incorrectly call a method named fillColor. the name of the method should be setFill. For example line 4 should read house.setFill('blue')