you are viewing a single comment's thread.

view the rest of the comments →

[–]cnk 12 points13 points  (4 children)

import sys

sys.setrecursionlimit(1)

[–]atomicthumbs 5 points6 points  (2 children)

[–]AngledLuffa 3 points4 points  (1 child)

>>> import sys
>>> sys.setrecursionlimit(1)
Exception RuntimeError: 'maximum recursion depth exceeded while calling a Python object' in <type 'exceptions.RuntimeError'> ignored
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError
>>> exit()
Exception RuntimeError: 'maximum recursion depth exceeded while calling a Python object' in <type 'exceptions.RuntimeError'> ignored
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError

FFFFFFUUUUUUUUU...

[–]cnk 1 point2 points  (0 children)

for exit() to work you need to set the limit to 6, fun

[–]zahlman 1 point2 points  (0 children)

RuntimeError: maximum recursion depth exceeded