except block isn't catching exception

Chris Angelico rosuav at gmail.com
Sat Aug 8 04:17:13 EDT 2015


On Sat, Aug 8, 2015 at 6:11 PM, Cameron Simpson <cs at 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?

ChrisA



More information about the Python-list mailing list