All pastes #338212 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-02-03 07:27 UTC
rendered paste body
class ExitLoops(Exception): pass

try:
   for i in range(100):
      for j in range(100):
         for k in range(100):
            if i+j+k == 123:
               raise ExitLoops(i+j+k)
except ExitLoops, value:
   print value