On 24 February 2012 14:54, Steven D'Aprano
<steve+comp.lang.pyt...@pearwood.info> wrote:

> for...else is a very useful construct, but the name is misleading. It
> took me a long time to stop thinking that the else clause executes when
> the for loop was empty.

This is why I think we should call this construct "for / break / else"
rather than "for / else".

-- 
Arnaud
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to