Tag Archives: PEP

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.