On 2007-11-05, Neil Cerutti <[EMAIL PROTECTED]> wrote:
> def Ack(x, y):
> """ The Ackermann function. Creates a humongous mess even
> with quite tiny numbers. """
> if x < 0 or y < 0:
> raise ValueError('non-negative integer')
> elif x == 0:
> return y + 1
> elif y == 0:
> return foo3(x-1, 1)
> else:
> return foo3(x-1, foo3(x, y-1))Urk! Of course those foo3 calls should have been Ack calls. -- Neil Cerutti -- http://mail.python.org/mailman/listinfo/python-list
