classes and functions

Arnaud Delobelle arnodel at googlemail.com
Sat Mar 3 15:04:33 EST 2007


On Mar 2, 11:01 pm, Nicholas Parsons <parsons.nichol... at gmail.com>
wrote:
> Hi Claire,
>
> That is the beauty of using Python.  You have a choice of using  
> classes and traditional OOP techniques or sticking to top level  
> functions.  For short, small scripts it would probably be overkill to  
> use classes.  Yet the programmer still has classes in his tool chest  
> if he/she is writing code that is going to be reused in larger  
> projects.

Exactly the same thing can be said about Lisp, C++, Perl, PHP, and no
doubt many other languages that I don't know ;)
(Well I guess C++ programs are not called 'scripts')

--
Arnaud




More information about the Python-list mailing list