sending Control-C to a python application

Lothar Scholz llothar at web.de
Tue May 7 07:47:35 EDT 2002


Under windows i use  the function 

GenerateConsoleEtrlEvent(CTRL_C_EVENT,pid)

but this terminated the python process !
Shouldn't it only generate a  "KeyboardInterrupt" exception ?
CTRL_BREAK_EVENT also terminates the process.
 



More information about the Python-list mailing list