KeyboardInterrupt

Raised when the user hits the interrupt key (normally Control-C or Delete). During execution, a check for interrupts is made regularly. Interrupts typed when a built-in function input or raw_input is waiting for input also raise this exception.

 

Comment:

Keep in mind that only the main thread receives KeyboardInterrupts

Posted by Mike Klaas (2006-12-02)

A Django site. rendered by a django application. hosted by webfaction.