"also" to balance "else" ?

Fredrik Lundh fredrik at pythonware.com
Tue Jun 14 03:59:44 EDT 2005


Ron Adam wrote:

> True, but I think this is considerably less clear.  The current for-else
> is IMHO is reversed to how the else is used in an if statement.

nope.  else works in exactly the same way for all statements that
support it: if the controlling expression is false, run the else suite
and leave the statement.

</F>






More information about the Python-list mailing list