Teaching python (programming) to children

Peter Hansen peter at engcorp.com
Fri Nov 9 21:48:23 EST 2001


John Roth wrote:
> "Michael Hudson" <mwh at python.net> wrote:
> > Laura Creighton <lac at strakt.com> wrote:
> > > In the same vein, if any of you out there are writing (or revising)
> > > 'how to program in Python' books or papers, could you please put
> > > the section on exception handling _early_, say, right after 'what
> > > is a loop', rather than in the last chapter?
> >
> > That's what my tech review for one such said over the summer :) This
> > may have been too late, of course.
> >
> > But Laura is right here.  Very very right.
> 
> Then possibly the decision to make exceptions classes was
> wrong from a tutorial veiwpoint? Technically, it was the
> right decision, but it does shove exception handling rather
> late, after classes have been introduced.

I wouldn't think one needs to understand classes to be able
to use exceptions effectively.  They just look like a simple
name for a type of problem that could occur in a block of
code, and one only needs to learn a little syntax to be
able to use them to great effect.

-- 
----------------------
Peter Hansen, P.Eng.
peter at engcorp.com



More information about the Python-list mailing list