Antoine Pitrou <pit...@free.fr> added the comment: > Adding a call: > > scheduler = sched.scheduler(time.time, time.sleep) > scheduler.enter(10, 1, function, (arg,)) > > ...vs: > > asyncore.call_later(10, function, arg)
I don't really see the difference. How hard it is to build a scheduler object at startup and store it somewhere in your globals or on one of your objects? The main improvement I could see would be to make the arguments to sched.scheduler() optional, and default to time.time and time.sleep. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1641> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com