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 Mark.Shannon
Recipients Demur Rumed, Mark.Shannon, benjamin.peterson, christian.heimes, mark.dickinson, nascheme, ncoghlan, pitrou, rhettinger, serhiy.storchaka, trent
Date 2017-12-04.11:46:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1512387994.23.0.213398074469.issue17611@psf.upfronthosting.co.za>
In-reply-to
Content
I plan to resurrect my original design over the Christmas break.
The reason that I want to get back to the original design is its consistency and relative simplicity.

Duplicating the finally block for every exit from the try body might sound expensive, but it only increases the size of the bytecode by an estimated 0.4%.
 
Using statement counts as a proxy for bytecodes, I ran the code query https://lgtm.com/query/1505907426052/ over a range of open stack and other large projects. The size increase is in the range 0.26% to 0.44%
(Note that the statement counts include dependencies)

I plan to start from 
https://github.com/python/cpython/pull/2827/commits/693b9398b5fd202fa5864f9cc76fa1bc7f84f62e
as that adheres to the original design, but cleans up the code.
Antoine that is on your branch, are you OK with me appropriating it?
History
Date User Action Args
2017-12-04 11:46:34Mark.Shannonsetrecipients: + Mark.Shannon, nascheme, rhettinger, mark.dickinson, ncoghlan, pitrou, christian.heimes, benjamin.peterson, trent, serhiy.storchaka, Demur Rumed
2017-12-04 11:46:34Mark.Shannonsetmessageid: <1512387994.23.0.213398074469.issue17611@psf.upfronthosting.co.za>
2017-12-04 11:46:34Mark.Shannonlinkissue17611 messages
2017-12-04 11:46:33Mark.Shannoncreate