Ben Chuanlong Du's Blog

It is never too late to learn.

RecurssionError in Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. Python does not support tail recursion elemination. Large recursion should be implemented as loop instead to avoid RecursionError.

  2. pylint encouter RecursionError ...

References

Recursion Error While Handling Recursion Error

Python: maximum recursion depth exceeded while calling a Python object

Tail Recursion Elimination

Comments