[plt-scheme] HtDP in Python!

From: Thomas Chust (chust at web.de)
Date: Tue Feb 17 06:14:17 EST 2009

2009-02-17 Marek Kubica <marek at xivilization.net>:
> On Mon, 16 Feb 2009 21:18:45 +0100 (CET)
> maxigas <maxigas at anargeek.net> wrote:
>> It actually depends on how far you stretch the stack.  I usually do
>> sth like this when i program Python with recursions:
>> import sys
>> sys.setrecursionlimit(1000)
> I wouldn't recommend such code as a long-time user of Python.
> [...]

Maybe stackless Python (http://www.stackless.com/) does tail calls. At
least it has full continuations, which implies good chances that tail
call optimization is also present...


When C++ is your hammer, every problem looks like your thumb.

Posted on the users mailing list.