help with my first use of a class

Simon Brunning simon at brunningonline.net
Fri Oct 20 14:12:06 EDT 2006


On 10/20/06, James Stroud <jstroud at mbi.ucla.edu> wrote:
>
> I don't really have formal programming training, but it is increasingly
> becoming my experience that OOP is but one ingredient in a good program.
> It can be left out or it can be mixed with other ingredients for a nice
> effect.

Indeed. Python is a multi-paradigm programing language. If the best
solution for a problem is a class, you've got them. If on the other
hand, you just need a function, you can have one of those too - none
of this class full of static methods rubbish like you have in Java. If
a functional approach is better, Python does that.

-- 
Cheers,
Simon B
simon at brunningonline.net
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list