[issue13449] sched - provide an async argument for run() method

2011-12-14 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: What about run(nowait=...) or run(only_ready=...)? Doing this as a separate method seems unnecessarily complicated to me in terms of implementation (move run logic into _run, add run and run_nowait, etc...). Most importantly, the user

[issue13449] sched - provide an async argument for run() method

2011-12-14 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: That's a good point. Then perhaps call the flag wait or blocking, since it avoids false positives and is more explicit than async? -- ___ Python tracker rep...@bugs.python.org

[issue13449] sched - provide an async argument for run() method

2011-12-14 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: blocking seems the most explicit to me. With this, we can also fix issue1641 by providing a specific section into asyncore doc which explains how to use asyncore in conjunction with sched. --

[issue13449] sched - provide an async argument for run() method

2011-12-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2975618965c0 by Giampaolo Rodola' in branch 'default': Fix #13449: add 'blocking' parameter to sched.scheduler.run() so that the scheduler can be used in non-blocking applications

[issue13449] sched - provide an async argument for run() method

2011-12-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- assignee: - giampaolo.rodola resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13449

[issue13449] sched - provide an async argument for run() method

2011-12-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +josiah.carlson, josiahcarlson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13449 ___

[issue13449] sched - provide an async argument for run() method

2011-12-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Library (Lib) stage: - patch review type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13449 ___

[issue13449] sched - provide an async argument for run() method

2011-11-21 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' g.rod...@gmail.com: If True it would run the scheduled functions due to expire soonest (if any) and then return. This would make sched module usable into asynchronous applications. -- messages: 148095 nosy: giampaolo.rodola priority: normal

[issue13449] sched - provide an async argument for run() method

2011-11-21 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file23746/sched-async.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13449 ___

[issue13449] sched - provide an async argument for run() method

2011-11-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think this would be better served by a separate method. You could call it e.g. run_nowait(). -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13449