STINNER Victor added the comment:

I revert all changes in select an selectors, the timeout is rounded again 
towards zero, as it was before.

I applied my asyncio_granularity.patch:
- selectors.BaseSelector has a new abstract "resolution" property
- asyncio.BaseEventLoop has a new granularity attribute which is used in 
_run_once() to round timings

I don't like hurry to push changes without review, but I wanted to revert my 
changes on select and selectors and fix the issue in asyncio issue before 
Python 3.4 beta 3.

I'm now waiting for buildbots. Don't hesitate to review my changes on selectors 
(new resolution attribute) and asyncio (new granularity attribute).

For selectors, I chose an abstract attribute to ensure that the resolution is 
defined in subclasses of BaseSelector and because it does not make sense to 
modify the resolution.

For asyncio, it's a classic attribute because a subclass may want to adjust the 
granularity if it overrides the time() method, or for other reasons.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20311>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to