Message384725
> 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). |
|
Date |
User |
Action |
Args |
2021-01-09 12:38:21 | mark.dickinson | set | recipients:
+ mark.dickinson, Mark.Shannon, serhiy.storchaka |
2021-01-09 12:38:21 | mark.dickinson | set | messageid: <1610195901.28.0.640825510805.issue42873@roundup.psfhosted.org> |
2021-01-09 12:38:21 | mark.dickinson | link | issue42873 messages |
2021-01-09 12:38:21 | mark.dickinson | create | |
|