[plt-scheme] HtDP in Python!

From: Marek Kubica (marek at xivilization.net)
Date: Tue Feb 17 01:41:39 EST 2009

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.

For funnier hacks, how about a tail recursion optimization decorator? :)
<http://code.activestate.com/recipes/474088/>
<http://code.activestate.com/recipes/496691/>

regards,
Marek


Posted on the users mailing list.