symbian-qemu-0.9.1-12/python-win32-2.6.1/lib/test/crashers/recursive_call.py
changeset 1 2fb8b9db1c86
equal deleted inserted replaced
0:ffa851df0825 1:2fb8b9db1c86
       
     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 
       
     9 import sys
       
    10 
       
    11 sys.setrecursionlimit(1 << 30)
       
    12 f = lambda f:f(f)
       
    13 
       
    14 if __name__ == '__main__':
       
    15     f(f)