Thanks, Victor. In the end that looks like the best solution. Are there any open issues left in Tulip that you'd like to be handled before CPython beta 3? My first week of classes is over and my Tulip talk is done, so I have a little breathing room this weekend.
On Sat, Jan 25, 2014 at 6:52 AM, Victor Stinner <[email protected]> wrote: > Hi, > > I reverted all my changes in CPython and Tulip in select and selectors > modules, the timeout is no more rounded aways zero, but it does not > fix the issue. Sometimes, the selector waits less than timeout > seconds. > > Instead, I added a resolution attribute to selectors.BaseSelector and > a granularity attribute to asyncio.BaseEventLoop, and > BaseEventLoop._run_once() uses the new granurality to round correctly > times. The granularity is the maximum between the resolution of the > clock and the resolution of the selector. > > I also added a unit test counting the number of calls to _run_once(). > > Victor -- --Guido van Rossum (python.org/~guido)
