On Tue, Jan 19, 2010 at 05:42:54PM +1300, Chris Mills wrote:
> Greetings,
> 
> In developing Python scripts for Maya I am wondering when is is
> appropriate to use a set of functions for a script and when it is better
> form to use a class with methods?
> 


http://www.python.org/doc/essays/ppt/hp-training/tsld008.htm

There's nothing worse than classes with too many methods..
or classes that over(ab)use inheritance.

Which reminds me of another good nugget of wisdom:

    Never inherit unless you absolutely must;
    aggregate whenever possible.

Another great set of guidelines, especially to those new to
Python:

http://www.python.org/dev/peps/pep-0008/


-- 
                David

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to