Beginning to learn python...help needed!

Alex Martelli aleaxit at yahoo.com
Mon Feb 5 12:06:58 EST 2001


"Martyn Quick" <mrq at for.mat.bham.ac.uk> wrote in message
news:Pine.GSO.4.21.0102051527590.21294-100000 at babbage...
    [snip]
> the programming.  Can anyone give some advice when is the right time to
> use a class, as opposed to just using the def command?

For a very simple tutorial on why one might use a class as a simple
container of data, http://www.deja.com/getdoc.xp?AN=708325609 --
I never wrote the followups to that about 'more uses for methods',
'utilitarian classes', inheritance, etc, but, at least, it IS
a small start:-).


Alex






More information about the Python-list mailing list