Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'handler': 0.04; 'cpython': 0.05; 'executed': 0.07; 'though:': 0.07; 'cc:addr:python-list': 0.09; 'handler.': 0.09; 'python': 0.10; 'ah,': 0.16; 'bytecode': 0.16; 'cc:name:python': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'low-level': 0.16; 'simpson': 0.16; 'subject:exception': 0.16; 'wrote:': 0.16; 'later': 0.16; 'have:': 0.18; 'tells': 0.18; 'thanks.': 0.18; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'aug': 0.20; 'machine': 0.21; 'sat,': 0.23; 'sets': 0.23; 'header:In-Reply- To:1': 0.24; 'example': 0.26; 'message-id:@mail.gmail.com': 0.27; '(c)': 0.29; 'url:python': 0.33; 'instead,': 0.33; 'received:google.com': 0.35; 'next': 0.35; 'there': 0.36; 'url:org': 0.36; 'url:library': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'virtual': 0.38; 'anything': 0.38; 'does': 0.39; 'from:': 0.39; 'url:3': 0.60; 'cameron': 0.66; 'importantly,': 0.66; '6:11': 0.84; 'chrisa': 0.84; 'to:none': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=anOS4oGis3nxC3WTzRYnyUf74rq6hbQv7jFcoRIgPG8=; b=FGJ+DFHUpS30YnKDTMc13HX8cbnl4LapP1+1T0AtPVT/syOC+FsnxaDzcKaSIph4qF Fqo2y+MHXiVu9Xx+yguJpckOyYs+rIc5VlxJp6yapx4RKgbGTIpw70J7Np/BR+/memx8 J+Gwrd8uIwmbjRpYbNZ/6sgpbREnzBvFBWsl+imQMnk1cpbsvAS5ToBgKp/Fo0tFeoCo 9QzhgJoOj2BXkf0vRtysqf50/Y5346E3OykzUhwX0sMvwQXCTso97zUv0C3Y2C3A5yLH ZzsPt6Gj1ld5uubF9GVTJO5KwoWKbzJ3BUDFeYeD9jl3CDFyyztPnCzXvOlhOfbnCN+0 06kQ== MIME-Version: 1.0 X-Received: by 10.107.163.11 with SMTP id m11mr12272075ioe.31.1439021833637; Sat, 08 Aug 2015 01:17:13 -0700 (PDT) In-Reply-To: <20150808081148.GA82462@cskk.homeip.net> References: <20150808081148.GA82462@cskk.homeip.net> Date: Sat, 8 Aug 2015 18:17:13 +1000 Subject: Re: except block isn't catching exception From: Chris Angelico Cc: Python Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1439021836 news.xs4all.nl 2880 [2001:888:2000:d::a6]:53748 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:95166 On Sat, Aug 8, 2015 at 6:11 PM, Cameron Simpson 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? ChrisA