Message155173
| Author |
pitrou |
| Recipients |
pitrou, telmich |
| Date |
2012年03月08日.19:06:15 |
| SpamBayes Score |
6.806644e-07 |
| Marked as misclassified |
No |
| Message-id |
<1331233326.3386.1.camel@localhost.localdomain> |
| In-reply-to |
<1331230249.37.0.418896595509.issue14228@psf.upfronthosting.co.za> |
| Content |
> Regarding "feature request": I think this is a *bug*, not a feature
> request: For me, it is impossible to handle SIGINT correctly with my
> code, because it is half-handled (exception raised, but impossible to
> catch) by python itself.
In the trace you just posted, I see "caught signint in parent" (at the
beginning), so the exception was indeed caught.
> When starting to read "python shipped code" (i.e. stuff that comes
> with python and is always loaded), it should either implement a
> handler for sigint OR have sigint signal handler set to ignore.
Well, it does implement a SIGINT handler, and that handler raises
KeyboardInterrupt. QED. You can override that behaviour and register
your own handler using the standard "signal" module.
http://docs.python.org/dev/library/signal.html |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年03月08日 19:06:16 | pitrou | set | recipients:
+ pitrou, telmich |
| 2012年03月08日 19:06:15 | pitrou | link | issue14228 messages |
| 2012年03月08日 19:06:15 | pitrou | create |
|