Do you want to consider more of the terminal calls? os.exit() os._exit() sys.exit() quit() (though quit raises SystemExit which could be locally caught; I think it's equivalent to raise SystemExit?).

On Tue, Jan 21, 2025 at 10:43 AM Konstantin Kharlamov <Hi-Angel@yandex.ru> wrote:
`exit()` ends current codeflow, there can't be any code past it. So
account `exit` similarly to `return`, `continue`, etc.