This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gut
Recipients benjamin.peterson, brunoalr, gut, pitrou, vstinner
Date 2017-08-17.11:30:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502969435.73.0.20713407382.issue30910@psf.upfronthosting.co.za>
In-reply-to
Content
> Throwing exceptions through CPython is totally unsupported, -fexceptions or not. Like C++ code that's not exception-aware, CPython lacks any of the catch handlers to properly clean up resources on unwind. 

wait wait. It's not expected that CPython would handle the exception at all! The only thing it's needed for CPython is to let the compiler generate extra information about how each function looks like in the stack (how the frame is structured, in DWARF language) in order for the unwinder to do his job.

As documented, the code would not change its current behavior (no machine code is added or removed, so when debugging your function looks the same) but extra information is given in other for unwind to happen through those frames.
History
Date User Action Args
2017-08-17 11:30:35gutsetrecipients: + gut, pitrou, vstinner, benjamin.peterson, brunoalr
2017-08-17 11:30:35gutsetmessageid: <1502969435.73.0.20713407382.issue30910@psf.upfronthosting.co.za>
2017-08-17 11:30:35gutlinkissue30910 messages
2017-08-17 11:30:35gutcreate