Skip to content

Glossary: Data Structures and Algorithms

Recursion limit

Also written: RecursionError

The deepest the call stack may go, about 1,000 calls by default, before Python raises `RecursionError`. Missing base cases or very long flat lists can trigger it.

Where the book teaches it

Related terms

RecursionCall stackBase case