Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95168
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <cameron@cskk.homeip.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'handler': 0.04; 'cpython': 0.05; 'executed': 0.07; 'though:': 0.07; 'handler.': 0.09; 'handlers': 0.09; 'spec': 0.09; 'python': 0.10; '>on': 0.16; 'bytecode': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'low-level': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:cskk.homeip.net': 0.16; 'received:homeip.net': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'simpson': 0.16; 'spec,': 0.16; 'subject:exception': 0.16; 'thread.': 0.16; 'viewport': 0.16; 'wrote:': 0.16; 'later': 0.16; 'have:': 0.18; 'tells': 0.18; 'thanks.': 0.18; 'language': 0.19; '2015': 0.20; 'aug': 0.20; 'machine': 0.21; "aren't": 0.22; 'cheers,': 0.22; 'bit': 0.23; 'sat,': 0.23; 'sets': 0.23; 'written': 0.24; 'header:In-Reply- To:1': 0.24; 'module': 0.25; 'header:User-Agent:1': 0.26; 'example': 0.26; 'chris': 0.26; 'this.': 0.28; 'thread,': 0.29; '(c)': 0.29; 'allows': 0.30; "i'd": 0.31; 'another': 0.32; "can't": 0.32; 'url:python': 0.33; 'instead,': 0.33; 'received:com.au': 0.33; 'next': 0.35; 'text': 0.35; 'generic': 0.35; 'there': 0.36; 'url:org': 0.36; 'url:library': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'charset:us-ascii': 0.37; 'no,': 0.38; 'virtual': 0.38; 'anything': 0.38; 'does': 0.39; 'enough': 0.39; 'from:': 0.39; 'to:addr:python.org': 0.40; 'url:3': 0.60; 'cameron': 0.66; 'detail.': 0.66; 'importantly,': 0.66; '6:11': 0.84; 'clearly.': 0.84; 'loose': 0.84; 'to:name:python': 0.84 |
| Date | Sat, 8 Aug 2015 19:02:59 +1000 |
| From | Cameron Simpson <cs@zip.com.au> |
| To | Python <python-list@python.org> |
| Subject | Re: except block isn't catching exception |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii; format=flowed |
| Content-Disposition | inline |
| In-Reply-To | <CAPTjJmrtKFrQmu0GdU-Nj0rdfBPvv1dj8+ZzSLTk1HKJix2PgQ@mail.gmail.com> |
| User-Agent | Mutt/1.5.23 (2014-03-12) |
| References | <CAPTjJmrtKFrQmu0GdU-Nj0rdfBPvv1dj8+ZzSLTk1HKJix2PgQ@mail.gmail.com> |
| X-Optus-CM-Score | 0 |
| X-Optus-CM-Analysis | v=2.1 cv=eZjABOwH c=1 sm=1 tr=0 a=7VRakydLWw4CnqwyGz1TSg==:117 a=7VRakydLWw4CnqwyGz1TSg==:17 a=ZtCCktOnAAAA:8 a=PO7r1zJSAAAA:8 a=vrnE16BAAAAA:8 a=yEdEr6MRgwAA:10 a=kj9zAlcOel0A:10 a=uRRa74qj2VoA:10 a=pGLkceISAAAA:8 a=8AHkEIZyAAAA:8 a=7ghiKHlVAAAA:8 a=rjB4hiHuZc_WQiD-TTAA:9 a=CjuIK1q_8ugA:10 a=uUPNzqFjAkUA:10 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1335.1439024589.3674.python-list@python.org> (permalink) |
| Lines | 38 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1439024589 news.xs4all.nl 2912 [2001:888:2000:d::a6]:34025 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:95168 |
Show key headers only | View raw
On 08Aug2015 18:17, Chris Angelico <rosuav@gmail.com> wrote: >On Sat, Aug 8, 2015 at 6:11 PM, Cameron Simpson <cs@zip.com.au> wrote: >> From: >> >> >> https://docs.python.org/3/library/signal.html#execution-of-python-signal-handlers >> >> we have: >> >> A Python signal handler does not get executed inside the low-level (C) >> signal handler. Instead, the low-level signal handler sets a flag which >> tells the virtual machine to execute the corresponding Python signal >> handler at a later point(for example at the next bytecode instruction). > >Ah, thanks. Most importantly, though: Is there anything in the >*language spec*, or is this a CPython implementation detail? Signals aren't part of the language spec, surely? Though part of the stdlib clearly. I'd say the above text from the signal module doco was written from the viewport of CPython, though it is loose enough in terminology (==> allows freedom to implementors) to read like generic Python spec than CPython detail. The other bit of text I quoted: Python signal handlers are always executed in the main Python thread, even if the signal was received in another thread. also reads like specification. No, I can't prove any of this. It is just how I read the signal module documentation. Cheers, Cameron Simpson <cs@zip.com.au> No good deed shall go unpunished! - David Wood <davewood@teleport.com>
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: except block isn't catching exception Cameron Simpson <cs@zip.com.au> - 2015-08-08 19:02 +1000
csiph-web