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
Newsgroups: comp.lang.python
From: Philip Semanchuk <phi...@semanchuk.com>
Date: Sun, 21 Jun 2009 10:49:42 -0400
Local: Sun, Jun 21 2009 10:49 am
Subject: Re: KeyboardInterrupt eats my error and then won't be caught
On Jun 20, 2009, at 10:21 PM, greg wrote: > Philip Semanchuk wrote: I completely agree. The simple solution (for me) is to handle all >> Best of all, PyErr_CheckSignals() doesn't interfere with a Python- > Ah, I hadn't realised that you were doing this in C > For C code, the solution you give sounds like a > My only misgiving is that the user might expect to return codes of EINTR the same way which is to raise posix_ipc.Error with the message "The wait was interrupted by a signal". But that loses information. KeyboardInterrupt is very specific while posix_ipc.Error is generic and even parsing the message doesn't tell much more. When my C code sees EINTR, I will probably raise KeyboardError when I Thanks, 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.
| ||||||||||||||