
Untitled
By: a guest on
Apr 16th, 2012 | syntax:
None | size: 0.82 KB | hits: 7 | expires: Never
Typos in Expert Python Programming that have not reported in errata.
p.64 double quote is missed and extra parenthesis
... raise DistinctError((“This value already
... “exists for ‘%s’”) % \
... str(self[existing_key]))
should be
... raise DistinctError("This value already "
... "exists for ‘%s’" %
... str(self[existing_key]))
p.64 . should be :
... def dir(self):
... print 'I am the %s folder.' % self.name
should be
... def dir(self):
... print 'I am the %s folder:' % self.name
p. 71
>>> from random import Random
>>> random.Random.__mro__
should be
>>> from random import Random
>>> Random.__mro__