can Python be useful as functional?

Lorenzo Stella lorestar at gmail.com
Tue Sep 18 17:06:43 EDT 2007


On 18 Set, 18:51, Grant Edwards <gra... at visi.com> wrote:
> Perhaps Lorenzo Stella is referring to Python's lack of
> tail-recursion optimization?  There are languages that
> guarantee unlimited tail-recursion with a limited stack.

That's it.

Rustom Mody: your implementation lacks exactly where mine does. Try
listing the first 2000 primes... That's what I meant: I cannot in
general (with Python) get such list just by defining *what* it is, I
have to express *how* to get it (describing an algorithm).

"What" or "How": that is the question.

Steve Holden wrote:
> You just don't like the specific limit that Python imposes. So increase
> it with sys.setrecursionlimit().

That is obviously not the answer to my question.




More information about the Python-list mailing list