this construct:
On Tue, Jul 15, 2014 at 5:09 AM, Oğuzhan Öğreden <oguzhanogre...@gmail.com> wrote: > > > while time_now < time_finish: # counter and count_until defined > somewhere above and > if g_threadStop.is_set() == False: > # return something or raise an exception to signal > iteration was interrupted > > might work better as something like while (time_now < time_finish) and (not g_threadStop.is_set()): to avoid the 'interrupt iteration' dilemma
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor