title: Avoiding "run out of memory" error in a recursive python function
body: <p>I wrote a recursive python function. After 30min - 1 hour it cancel the process because it ran out of memory. If I look in the task manager I also see that too much ram memory is used. If I restart the function everything is fine again. How can I avoid this problem and let the program "run forever"?</p>