[Python-ideas] for/except/else syntax

Yuvgoog Greenle ubershmekel at gmail.com
Sat Oct 10 22:40:02 CEST 2009

On Sat, Oct 10, 2009 at 1:20 AM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
[ snip ]
> something that rhymes
[ snip ]

Well, we all know that poetry is a pythonic way of explaining things...

After a loop, a "for" or a "while",
runs the "else" along with a smile.
To skip the "else" without breaking a leg,
use a "break", don't boil an egg.


(ps, I'd prefer the for/break/else be completely removed or renamed to
something readable if-not-break or whatever. I just had a strange muse
for this...)

More information about the Python-ideas mailing list