confusing sentence correction
Dec. 16, 2017
12:17 p.m.
Dear Sir/Ms., Just a suggestion (that I think is a good one): From page 4. More Control Flow Tools — Python 3.6.4rc1 documentation simply remove sentence "When used with a loop, the else clause has more in common with the else clause of a try statement than it does that of if statements: a try statement’s else clause runs when no exception occurs, and a loop’s else clause runs when no break occurs." I think that sentence is unnecessary and needlessly misleading and confusing. When examined closely, what the documentation specifies is that the else actually works the same with while as it does with if (namely that the else block is not executed if the loop exits by break). best regards,George Herson
3103
Age (days ago)
3103
Last active (days ago)
0 comments
1 participants
participants (1)
-
George Herson