Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5693
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsfeed.freenet.ag!news.space.net!news.m-online.net!not-for-mail |
|---|---|
| From | Christoph Scheingraber <spam@scheingraber.net> |
| Newsgroups | comp.lang.python |
| Subject | Re: connect SIGINT to custom interrupt handler |
| Date | Wed, 18 May 2011 13:28:41 +0000 (UTC) |
| Organization | (posted via) M-net Telekommunikations GmbH |
| Lines | 10 |
| Message-ID | <slrnit7icb.f3l.spam@scheingraber.no-ip.org> (permalink) |
| References | <slrnisv835.b74.chris@scheingraber.no-ip.org> <04cee22d-fc07-4c54-b91b-3f9e4730f095@glegroupsg2000goo.googlegroups.com> |
| Reply-To | usenet@scheingraber.net |
| NNTP-Posting-Host | ppp-188-174-6-71.dynamic.mnet-online.de |
| X-Trace | news.m-online.net 1305725321 31044 188.174.6.71 (18 May 2011 13:28:41 GMT) |
| X-Complaints-To | abuse@m-online.net |
| NNTP-Posting-Date | Wed, 18 May 2011 13:28:41 +0000 (UTC) |
| User-Agent | slrn/pre1.0.0-18 (Linux) |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:5693 |
Show key headers only | View raw
On 2011-05-15, Miki Tebeka <miki.tebeka@gmail.com> wrote:
> Why not just catch KeyboardInterrupt?
Would it be possible to continue my program as nothing had happened in
that case (like I did before, setting a flag to tell main() to finish the
running data download and quit instead of starting the next data download
{it's a for-loop})?
I have tried it, but after catching the KeyboardInterrupt I could only
continue to the next iteration.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: connect SIGINT to custom interrupt handler Miki Tebeka <miki.tebeka@gmail.com> - 2011-05-15 08:25 -0700
Re: connect SIGINT to custom interrupt handler Christoph Scheingraber <spam@scheingraber.net> - 2011-05-18 13:28 +0000
Re: connect SIGINT to custom interrupt handler Jean-Paul Calderone <calderone.jeanpaul@gmail.com> - 2011-05-18 07:16 -0700
Re: connect SIGINT to custom interrupt handler Nobody <nobody@nowhere.com> - 2011-05-19 11:34 +0100
csiph-web