usrbinenv python3 no bug report afaik mail on pythondev on 20060110 this is a won t fix case it is known that setting a high enough recursion limit crashes by overflowing the stack unless this is redesigned somehow it won t go away usr bin env python3 no bug report afaik mail on python dev on 2006 01 10 this is a won t fix case it is known that setting a high enough recursion limit crashes by overflowing the stack unless this is redesigned somehow it won t go away
import sys

sys.setrecursionlimit(1 << 30)
f = lambda f:f(f)

if __name__ == '__main__':
    f(f)