Date: Thu, 13 Feb 2025 22:11:42 +0100
One should add that the else branch is not run in Python, when the loop has been left with a corresponding break instruction.
-----Ursprüngliche Nachricht-----
Von:Magnus Fromreide via Std-Proposals <std-proposals_at_[hidden]>
If we are talking of loop Pythonisms then a loop else branch does add some
value as that case often is a bit contrieved to test for. (The else branch
of a loop is executed when the loop condition fails to run the loop more
times)
Received on 2025-02-13 21:15:51