Language improvement: Get more from the `for .. else` clause

Michael Selik michael.selik at
Mon Jun 27 11:06:20 EDT 2016

On Mon, Jun 27, 2016 at 12:53 AM Victor Savu <victor.nicolae.savu at>

> capture the [StopIteration] value in the `else` statement of the `for` loop

I'm having trouble thinking of a case when this new feature is necessary.
Can you show a more realistic example?

More information about the Python-list mailing list