The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by rik]

Disclaimer: I am not a Python programmer.

137: Indentation error, last two lines and continuation on page 138
165: t appear after annotation, should appear before
212: .pi should be .py (twice)
223: isinstance(e, E) should be isinstance(d, E)
235: r" he" == " he" is false, shown as true. Perhaps it should say == " he"
239: add as line 3 regexp=re.compile(patttern)
262: duplicate line db=dbEngine.OpenDatabase('CsmilieatabaseRecept.mdb')
262: indent four lines following while not MyRecordset.EOF:
262: access should be Access
295: should jfk be jdk?
302: thetop should be the top

On 187, while it is arbitrary and not incorrect, self.xi might better be
self.iv

On 196, I would dispute the derivation of widget . As an X programmer in the
'eighties, I used the term often, as well as gadget . Widgets are styled
after the anonymous parts manufactured by the Jetson's Mr Spacely in his
factory. Gadgets were, in the X community, lightweight (or lighterweight)
widgets; they followed, not preceded, widgets in the windowing lexicon.

All in all, the book is a nice introduction to a language, but the typos are
appalling, and make it hard to recommend the book to anyone who isn't an
experienced programmer already -- hardly the target audience.
import-bot (20211) [Avatar] Offline
#2
Re: Errata: pgs 137 165 212 223 235 239 262 295 302 and comments on 187 and 196
[Originally posted by rik]

> 235: r" he" == " he" is false, shown as true. Perhaps it should say == " he"

The above line got mangled by the posting software, which probably should
treat everything passed to it literally. For clarification, the cited string
is:

are double back tee aitch ee double equal equal double back tee aitch ee double

I hope the posting software doesn't mangle that, as well.

--
Rik Kabel
import-bot (20211) [Avatar] Offline
#3
Re: Errata: pgs 137 165 212 223 235 239 262 295 302 and comments on 187 and 196
[Originally posted by daryl harms]

Hi Rik,

Thanks for catching and reporting these. They will be added to the errata.

On the description of widget as a "window gadget" we are not the only ones
that use this (but that certainly doesn't preclude us from being wrong). The
"foldoc" computing term dictionary gives:
(i.e. http://nightflight.com/cgi-bin/foldoc.cgi?query=widget&action=Search)

---------------------------------------
widget
1. A meta-thing. Used to stand for a real object in didactic examples
(especially database tutorials). Legend has it that the original widgets were
holders for buggy whips. "But suppose the parts list for a widget has 52
entries..."

2. [possibly evoking "window gadget"] In graphical user interfaces, a
combination of a graphic symbol and some program code to perform a specific
function. E.g. a scroll-bar or button. Windowing systems usually provide
widget libraries containing commonly used widgets drawn in a certain style and
with consistent behaviour.
----------------------------------------

So, the Jetson's creators might have derived their new-fangled space-age parts
from a term for buggy whips smilie.

As they are not very sure of the "window gadget" derivation here, I can
certainly see you being right (since you were there) and the "window gadget"
derivation could just be a bit of after the fact revisionism.

Thanks again,
Daryl