Infinite recursion

Yes, I misremembered.

That is what RecursionError is for. It just isn’t being raised here probably because of a bug.

I think you misunderstand what Ctrl-\ is. In my terminal on Linux Ctrl-\ sense SIGQUIT which is a more forceful way of telling a process (not necessarily Python) to stop.