Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion KeyboardInterrupt eats my error and then won't be caught
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
greg  
View profile  
 More options Jun 20 2009, 10:21 pm
Newsgroups: comp.lang.python
From: greg <g...@cosc.canterbury.ac.nz>
Date: Sun, 21 Jun 2009 14:21:23 +1200
Local: Sat, Jun 20 2009 10:21 pm
Subject: Re: KeyboardInterrupt eats my error and then won't be caught

Philip Semanchuk wrote:
> Best of all, PyErr_CheckSignals() doesn't interfere with a Python- level
> signal handler if one is set.

Ah, I hadn't realised that you were doing this in C
code, and I was trying to think of a Python-level
solution.

For C code, the solution you give sounds like a
good one.

My only misgiving is that the user might expect to
get a KeyboardInterrupt in response to Ctrl-C, so
it might be better to just let it propagate instead
of turning it into a different exception.

--
Greg


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.