Neal Norwitz | ae1df41 | 2006-01-11 07:21:19 +0000 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | |
| 3 | # No bug report AFAIK, mail on python-dev on 2006-01-10 |
Armin Rigo | b62efad | 2006-07-25 18:38:39 +0000 | [diff] [blame] | 4 | |
| 5 | # This is a "won't fix" case. It is known that setting a high enough |
| 6 | # recursion limit crashes by overflowing the stack. Unless this is |
| 7 | # redesigned somehow, it won't go away. |
| 8 | |
Neal Norwitz | ae1df41 | 2006-01-11 07:21:19 +0000 | [diff] [blame] | 9 | import sys |
| 10 | |
| 11 | sys.setrecursionlimit(1 << 30) |
| 12 | f = lambda f:f(f) |
| 13 | |
| 14 | if __name__ == '__main__': |
| 15 | f(f) |