OO re-factoring (was Pythonese/Efficiency/Generalese critique [on Tutor])

Lee Cullens lee_cullens at mac.com
Wed Jun 8 09:33:17 EDT 2005


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 <me at privacy.net>
> Date: June 8, 2005 8:22:39 AM EDT
> To: python-list at python.org
> Subject: Re: OO re-factoring (was Pythonese/Efficiency/Generalese  
> critique [on Tutor])
>
>
> On Wed, 8 Jun 2005 00:52:06 -0400,
> Lee Cullens <lee_cullens at mac.com> 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://www.tombstonezero.net/dan/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20050608/cf017015/attachment.html>


More information about the Python-list mailing list