
Feb. 16, 2008
4:05 a.m.
Bill Janssen wrote:
I think we should just replace the current "loop" with this (and add the "schedule" function). Then other folks won't have to figure out how the module works and write their own loop.
Having beaten my way down this road of broken glass, I would like args and kwargs if you are adding this: def schedule(delta, fn, *args, **kwargs): heap.heappush(tasks, (time.time()+delta, (fn, args, kwargs))) ... callme[0](*callme[1], **callme[2]) Joel