Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #4359

Re: Fibonacci series recursion error

From Hans Georg Schaathun <hg@schaathun.net>
Newsgroups comp.lang.python
Subject Re: Fibonacci series recursion error
Date 2011-04-30 14:21 +0100
Organization University of Bergen
Message-ID <mvet88-018.ln1@svn.schaathun.net> (permalink)
References <a78a0ffd-03cc-4540-addb-b8e206d165d5@n2g2000prj.googlegroups.com> <KtMup.29280$8U5.7734@newsfe20.iad> <87iptw1egh.fsf@rudin.co.uk> <up6t88-4p7.ln1@svn.schaathun.net> <87ei4k0ygz.fsf@rudin.co.uk>

Show all headers | View raw


On Sat, 30 Apr 2011 12:29:00 +0100, Paul Rudin
  <paul.nospam@rudin.co.uk> wrote:
:  Clearly it makes a difference in any case where you'd hit the recursion
:  limit.

What kind of problems make you hit the limit?

Other than when you forget the base case, I mean.

:          It's no big deal to do your own unwinding of the recursion to a
:  loop, but the code is typically less clear.

Sure.  And you have to live with your less clear code when you maintain
the system later.

-- 
:-- Hans Georg

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar


Thread

Re: Fibonacci series recursion error Hans Georg Schaathun <hg@schaathun.net> - 2011-04-30 12:01 +0100
  Re: Fibonacci series recursion error Paul Rudin <paul.nospam@rudin.co.uk> - 2011-04-30 12:29 +0100
    Re: Fibonacci series recursion error Hans Georg Schaathun <hg@schaathun.net> - 2011-04-30 14:21 +0100

csiph-web