Ctrl-C
Rene Pijlman
reageer.in at de.nieuwsgroep
Tue Feb 25 05:24:39 EST 2003
<gombosk at vas.birosag.hu>:
>How could I trap the Ctrl-C?
It depends on the context of course (GUI or command line), but
this is from the Library Reference 2.2, section 2.3 Built-in
Exceptions:
"exception 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."
--
René Pijlman
Wat wil jij leren? http://www.leren.nl
More information about the Python-list
mailing list