Skip to content

Instantly share code, notes, and snippets.

@NorthIsUp
Created July 19, 2012 18:49
Show Gist options
  • Save NorthIsUp/3145949 to your computer and use it in GitHub Desktop.
Save NorthIsUp/3145949 to your computer and use it in GitHub Desktop.
sys.setrecursionlimit
import sys
def recur(i=0):
print i
sys.setrecursionlimit(i + 2)
recur(i + 1)
recur(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment