Skip to content

Instantly share code, notes, and snippets.

@vitorfs
Created July 10, 2016 12:52
Show Gist options
  • Save vitorfs/a6481883d20c74c3f291ed847cb53903 to your computer and use it in GitHub Desktop.
Save vitorfs/a6481883d20c74c3f291ed847cb53903 to your computer and use it in GitHub Desktop.
Change Python Recursion Limit
import sys
# Get current limit
sys.getrecursionlimit() # Outputs 1000 (default)
# Set new limit
sys.setrecursionlimit(2000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment