On 23/07/2020 16:24, Stephen J. Turnbull wrote:
Steven D'Aprano writes:
  > On Wed, Jul 22, 2020 at 06:14:39AM +0300, Paul Sokolovsky wrote:

  > > But no, loop executes, *or else* the following "else" block
  > > executes ;-).

He means the loop *suite* executes (this includes "getting to" a break
statement or other control flow that leaves the loop *statement*
entirely), and if it doesn't, the else suite does.  This is "why" such
nonlocal exits differ from finally in that they don't run the else suite.

I personally think this is a perfectly clear and convincing argument
for "else" as the keyword for this statement (once "suite" is added to
Paul's phrasing).

This is why programmers should major in English, and do a graduate
degree in programming if they really think they need a degree in
programming.


Suggesting (as you seem to be) that a given language feature requires an advanced qualification in English to be understood properly scarcely constitutes an endorsement of said feature. O:-)
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/7ZBOCBX4XUOEWVKXAI453R34BFZLBVRK/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to