"also" to balance "else" ?

Fredrik Lundh fredrik at pythonware.com
Tue Jun 14 04:03:15 EDT 2005


Terry Hancock wrote:

> Personally, though, "for-finally" would make a lot more sense
> to me than "for-else" (and I don't have enough "for-else" code
> to worry about it breaking).

"finally" means "run this piece of code no matter what happens in
the previous block".  that's not how "else" works in today's Python.

</F>






More information about the Python-list mailing list