ANN: Kamaelia 0.2.0 released!

Terry Reedy tjreedy at udel.edu
Thu Aug 4 03:11:41 CEST 2005


"Michael Sparks" <ms at cerenity.org> wrote in message 
news:42f14e42$0$3493$ed2619ec at ptn-nntp-reader03.plus.net...
> An alternative to this is this:
>
> def updater(interval, message):
>   t = time.time():
>   while 1:
>      if time.time() - t > interval:
>         print message

           yield None # add this ????

>
> def long_running_thing(foo):
>   myUpdater = updater(5, "Still running")
>   while running:
>       << do something long running>>
>       myUpdater.next()






More information about the Python-list mailing list