"also" to balance "else" ?

Andrew Dalke dalke at dalkescientific.com
Tue Jun 14 03:53:35 EDT 2005


Terry Hancock wrote:
> No, I know what it should be.  It should be "finally".   It's already
> a keyword, and it has a similar meaning w.r.t. "try".

Except that a finally block is executed with normal and exceptional
exit, while in this case you would have 'finally' only called
when the loop exited without a break.

				Andrew
				dalke at dalkescientific.com




More information about the Python-list mailing list