Keyboard Interrupts

Glen Collins (glenc@netcom.com)
Sat, 25 Feb 1995 19:22:04 GMT

Hello!

I would like to know if there is is a way to specify in python to
ignore keyboard interrupts(^C). I would like to do this a the very
beginning of the script. There are thress way I can see of doing
this, but I would prefer to do it within python.

#1. Us try/except statements throughout the script (too many!)
#2. Patch python to ignore all SIGINT's
#3. Compile python with a "SIGNAL" type of library able to use include
statements.

Is this possible? Has anyone done it? I would like to know. Please post it!

Thanks!

-Glen

--