On 07/03/2016 23:09, Fillmore wrote:

I must be missing something simple because I can't find a way to break
out of a nested loop in Python.

Is there a way to label loops?

For the record, here's a Perl script of mine I'm trying to port...there
may be 'malformed' lines in a TSV file I'm parsing that are better
discarded than fixed.


[snipped the code as I don't understand it]

Another interesting read that I've found http://nedbatchelder.com/blog/201203/breaking_out_of_two_loops_at_once.html

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to