source: python/trunk/Lib/test/crashers/recursive_call.py

Last change on this file was 2, checked in by Yuri Dario, 15 years ago

Initial import for vendor code.

  • Property svn:eol-style set to native
File size: 357 bytes
Line 
1#!/usr/bin/env python
2
3# No bug report AFAIK, mail on python-dev on 2006-01-10
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
9import sys
10
11sys.setrecursionlimit(1 << 30)
12f = lambda f:f(f)
13
14if __name__ == '__main__':
15 f(f)
Note: See TracBrowser for help on using the repository browser.