have always wanted `break break` syntax for this kind of thing
for x in a1:
for y in a2:
if test(y):
break break # break both outer loops
in general, I wonder if there's a class of 'tree-like' control structures which can break multiple levels under certain circumstancesan application might be scope management parsing -- I tried to build something like this a while ago, not clear that it's better than parser-generators but it's certainly different