I'm looking for a more pythonic way to construct this check:
good_result = None
for item in items:
result = process(item)
if result.isGood():
good_result = result
break
if not good_result:
deal_with_consequences_of_bad_result()
Assume that we don't want to process all items in the list, so I only want to check for the the first occurrence of a good result.