else clauses in while and for loops

Terry Reedy tjreedy at udel.edu
Tue Mar 28 17:23:37 EST 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