Hacker News new | ask | show | jobs
by bee_rider 619 days ago
I dunno, this just usually means I’m going to hold control and mash C, hopefully I can get my interrupt to occur inside your except
3 comments

Signals are non-reentrant.
That's unecessary, because of the 'raise' statement. This construct effectively only hooks exceptions, it doesn't swallow them.
You know about Ctrl-\, right? Kills python right away, no exceptions or anything.

(there is also coredump but most distros disable or hide them, so it's not a problem in practice)