You are not logged in.

#1 2008-11-14 14:30:14

Hide
Member
From: Castalia
Registered: 2007-02-02
Posts: 368

Python and program interruption

Is it possible to execute a piece of code *after* KeyboardInterrupt. If yes, how to implement it?

Thank you smile

Offline

#2 2008-11-14 21:10:16

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: Python and program interruption

What's wrong with:

try:
  blahblah
except KeyboardInterrupt:
  do_your_thing

I guess I need to hear more about what specifically you're trying (but finding yourself unable) to do.

Offline

Board footer

Powered by FluxBB