Tag Archives: labeled continue

Eight Python warts

I love Python, but a few things still bug me about it. I’ve bashed on several other technologies; here’s some Python bashing. In no particular order:

Update: This has started a pretty good discussion on Reddit. Many people correctly guessed that I’m using singleton in the mathematical sense, not in the sense of the programming pattern. The comments from Cairnarvon and tghw are particularly worth reading.

Proposal for labeled break and continue in Python

I’ve created and submitted a new PEP proposing support for labels in Python’s break and continue statements. Georg Brandl has graciously added it to the PEP list as PEP 3136. Yay!

For added weirdness, read the alternative specifications… I came up with a few quite bizarre ways to implement loop-specific break and continue.