trapping keyboard interupt

Bengt Richter bokr at oz.net
Mon Oct 7 22:21:43 EDT 2002


On 8 Oct 2002 01:44:49 GMT, bokr at oz.net (Bengt Richter) wrote:
[...]

>You want to catch the interrupt before python's default handler turns it into
>an interrupt. Then you can just watch a flag in the loop and not get blasted out
    ^^^^^^^^^- exception is what I meant to say ;-/
>of it. E.g., you may find this amusing:

Regards,
Bengt Richter



More information about the Python-list mailing list