Than
Thanks for the reply Dan,

Yes, my take was flawed, and a number of individuals on the Tutor list pointed me in the right direction.  

Thanks again,
Lee C

From: Dan Sommers <[EMAIL PROTECTED]>
Date: June 8, 2005 8:22:39 AM EDT
Subject: Re: OO re-factoring (was Pythonese/Efficiency/Generalese critique [on Tutor])


On Wed, 8 Jun 2005 00:52:06 -0400,
Lee Cullens <[EMAIL PROTECTED]> wrote:


... My thinking is that class/subclass method instances would replace
the recursive functions approach, but have as yet not formed the
coding in my mind.


I don't remember the original post, but methods and recursion are *not*
mutually exclusive (e.g., an Integer class with a factorial method, or a
binary tree class whose nodes are also binary trees).

Regards,
Dan

-- 
Dan Sommers
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to