for what are for/while else clauses

Erik Max Francis max at alcyone.com
Mon Nov 17 05:41:33 EST 2003


Fredrik Lundh wrote:

> that's not what it means, of course.
> 
> in every single case, it means "run once, if and only if the
> controlling condition is false".

Where's the controlling condition in

	for x in sequence:
	    ...
	else:
	    ...

?

-- 
   Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
 __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/  \ 
\__/ Get married, but never to a man who is home all day.
    -- George Bernard Shaw




More information about the Python-list mailing list