DanielHannon

segfault python

Apr 18th, 2019
616
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. import sys
  2. print sys.getrecursionlimit()
  3. sys.setrecursionlimit(0x100000)
  4.  
  5. def f(i):
  6.     print i
  7.     sys.stdout.flush()
  8.     f(i + 1)
  9. f(0)
Advertisement
Add Comment
Please, Sign In to add comment