else clauses in while and for loops

Terry Reedy tjreedy at udel.edu
Wed Mar 29 00:23:37 CEST 2000


> >> I don't think that is a real need.

Well, need is relative to convenience.  There is a lot in most languages
that could theoretically be removed.

My answer to InCogNiTo's 'Problem' illustrates perfectly what for-else is
for.

Terry J. Reedy





More information about the Python-list mailing list