Python's "only one way to do it" philosophy isn't good?

Steve Howell showell30 at
Wed Jun 13 00:51:07 CEST 2007

--- "Anders J. Munch" <2007 at> wrote:
> Converting tail-recursion to iteration is trivial,
> and perfectly reasonable for 
> a human to do by hand.  You add an outer "while
> True"-loop, the recursive call 
> becomes a tuple assignment, and other code paths end
> with a break out of the 
> loop.  Completely mechanical and the resulting code
> doesn't even look that bad.

I have to ask the stupid question.  If a human can do
this completely mechanically, why can't a machine?

Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.

More information about the Python-list mailing list