Halt and catch fire: Difference between revisions

Added Python
(Added Python)
Line 179:
No output, the try/catch is just for show. ExitProcess/sys_exit are the only non-catchable things I know of, apart from a few other deliberates such as quitting the debugger, and aside from being technically difficult to catch it seems reasonable to classify them as direct actions rather than errors, and that way excuse the non-catchableness.<br>
<small>(I suppose [ok, actually know that] you could also write inline assembly that fubars the call stack to [effectively or quite deliberately] disable any active exception handler[s])</small>
=={{header|Python}}==
<lang Python>.</lang>
{{out}}
<pre> File "<stdin>", line 1
.
^
SyntaxError: invalid syntax</pre>
 
=={{header|Raku}}==
Anonymous user