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

Dan Sommers me at privacy.net
Wed Jun 8 08:22:39 EDT 2005


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/>



More information about the Python-list mailing list