Named loops for breaking

alex23 wuwei23 at
Wed Mar 10 03:10:20 CET 2010

Daniel Klein <bri... at> wrote:
> Basically I'm wondering if there are any plans to implemented named
> loops in Python, so I can tell a break command to break out of a
> specific loop in the case of nested loops.

You should be able to do this with the goto module:

But please note that I'm not seriously advocating its use :)

More information about the Python-list mailing list