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.dickinson
Recipients Mark.Shannon, mark.dickinson, serhiy.storchaka
Date 2021-01-09.12:38:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610195901.28.0.640825510805.issue42873@roundup.psfhosted.org>
In-reply-to
Content
> And there may be more than one return/break/continue statement in the try block. It increases the base of the degree.

Ah, interesting. My understanding was that that can't happen, but I'll double check. In the control flow, all 'return' statements that leave a try block are going to the same place, so only one 'finally' branch needs to be generated no matter how many returns you have. And similarly for 'break' and 'continue'. IOW, what matters is the possible paths that can be taken when the finally block exits, and there are only up to 5 of those (for raise, return, break, continue, and leaving normally).
History
Date User Action Args
2021-01-09 12:38:21mark.dickinsonsetrecipients: + mark.dickinson, Mark.Shannon, serhiy.storchaka
2021-01-09 12:38:21mark.dickinsonsetmessageid: <1610195901.28.0.640825510805.issue42873@roundup.psfhosted.org>
2021-01-09 12:38:21mark.dickinsonlinkissue42873 messages
2021-01-09 12:38:21mark.dickinsoncreate