[Python-Dev] Py3k and asyncore/asynchat
Joel Bender
jjb5 at cornell.edu
Fri Feb 15 22:05:18 CET 2008
More information about the Python-Dev mailing list
Fri Feb 15 22:05:18 CET 2008
- Previous message: [Python-Dev] Py3k and asyncore/asynchat
- Next message: [Python-Dev] Error in post-revprop-change hook in svn
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Py3k and asyncore/asynchat
- Next message: [Python-Dev] Error in post-revprop-change hook in svn
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list