Terry Reedy wrote: > "Michael Sparks" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED]
>> def updater(interval, message): >> t = time.time(): >> while 1: >> if time.time() - t > interval: >> print message > > yield None # add this ???? Yes. (I can't believe I missed that out! :) I'd normally use yield 1, but that's force of habit. I tend to use a true value to indicate a never ending generator - partly because we use a false value to indicate clean shutdown of a component to our scheduler. Thanks :) Michael -- [EMAIL PROTECTED], http://kamaelia.sourceforge.net/ British Broadcasting Corporation, Research and Development Kingswood Warren, Surrey KT20 6NP This message (and any attachments) may contain personal views which are not the views of the BBC unless specifically stated. -- http://mail.python.org/mailman/listinfo/python-list