Python Counter Infinite Serie

i = 0
while not there_is_reason_to_break(i):
    # some code here
    i += 1
Shy Shrike