How to label loops?

Zamurai zamurai at gmx.net
Sun Feb 11 13:31:20 EST 2001


"Steve Holden" <sholden at holdenweb.com> wrote:
> First, convince me that loops need labelling!
> 
> regards
>  Steve
> --
> --
> Tools, training and technology to help you meet your information needs
> 
> 
> 
> "Zamurai" <zamurai at gmx.net> wrote in message
> news:981845104.329821352 at news.t-online.de...


for example:

while 1:                # first loop
    while 1:            # second loop 
        break


this break breaks only out of the first loop, but what, if i want to break out
of the first loop, while i´m in the second one?



More information about the Python-list mailing list