(root)/
Python-3.11.7/
Lib/
test/
crashers/
recursive_call.py
       1  #!/usr/bin/env python3
       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)