approach to writing functions

Rainer Deyke rainerd at eldwood.com
Tue Feb 10 06:23:06 CET 2004


Terry Reedy wrote:
> "Bart Nessux" <bart_nessux at hotmail.com> wrote in message
> news:c09f8c$l2f$1 at solaris.cc.vt.edu...
>> I understand that most people write functions to reuse code, no?
>
> Another reason is to define, name, and embody a concept, even if the
> function is only used once.

Another reason is that you need a callable object, whether it embodies some
high level concept or not.


-- 
Rainer Deyke - rainerd at eldwood.com - http://eldwood.com





More information about the Python-list mailing list