Introduction object-oriented programming

Terry Reedy tjreedy at udel.edu
Fri Jan 17 12:40:16 EST 2003


"Wouter van Marle" <wouterm at spammers-unite-here.com> wrote in message
news:b08ank$dak12 at imsp212.netvigator.com...
> Hi All,
>
> Can anyone recommend me an introduction on object oriented
programming in
> general, and the trick in Python? Preferrably tutorial on the web or
so.

One possibility: pick one of the library modules that defines a class
that does something of interest (and comprehension) to you.  Read the
source code (and maybe the test module also, if you can find it in
Lib/Test).  Import the class into the interpreter and exercise some of
the methods.   Define a derived class and override one of the methods.
(And *do not* worry about metaclasses, properties, slots, etc until
you are comfortable with the basics.)

Terry J. Reedy






More information about the Python-list mailing list