[Python-Dev] Py3k and asyncore/asynchat

Joel Bender jjb5 at cornell.edu
Fri Feb 15 22:05:18 CET 2008


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


More information about the Python-Dev mailing list