OO conventions

Scott David Daniels scott.daniels at acm.org
Mon Feb 6 11:26:58 EST 2006


Fredrik Lundh wrote:
> Nicola Musatti wrote:
>> What is important to me is to keep your get_initial_data() function
>> outside Klass if it's task is non trivial, e.g. it has to interact with
>> the OS or a DB.
> 
> why ?

In order to simplify testing.

--Scott David Daniels
scott.daniels at acm.org



More information about the Python-list mailing list