KeyboardInterrupt

Jaap Vermeulen (jaap@sequent.com)
Thu, 16 Dec 93 11:33:00 PST

Although this is not a big problem, I noticed that I cannot predict the
behavior of an interrupt signal. Say that I want to print a message when
receiving an interrupt, I would have to make a toplevel program that *only*
handles the interrupt in a couple of lines (very inconvenient). In any other
case I can interrupt the interpreter before it arrives at the try:except:
that handles the KeyboardInterrupt the way I want to.

Soooo, what I propose is a command line switch for python that will block
(not ignore) the interrupt signal (SIGINT) until the interpreter detects a
try:except: that handles KeyboardInterrupt or by means of a special keyword
or function, whatever is feasible.

How about it?

-Jaap-