for: else: - any practical uses for the else clause?

metaperl.etc at gmail.com metaperl.etc at gmail.com
Tue Sep 26 16:59:48 EDT 2006


A very old thread:
http://groups.google.com/group/comp.lang.python/browse_frm/thread/2c5022e2b7f05525/1542d2041257c47e?lnk=gst&q=for+else&rnum=9#1542d2041257c47e

discusses the optional "else:" clause of the for statement.

I'm wondering if anyone has ever found a practical use for the else
branch?




More information about the Python-list mailing list