Issue #20311, #20452: poll and epoll now round the timeout away from zero,
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 31 Jan 2014 12:02:44 +0000 (13:02 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 31 Jan 2014 12:02:44 +0000 (13:02 +0100)
instead of rounding towards zero, in select and selectors modules:
select.epoll.poll(), selectors.PollSelector.poll() and
selectors.EpollSelector.poll(). For example, a timeout of one microsecond
(1e-6) is now rounded to one millisecondi (1e-3), instead of being rounded to
zero.

Mention the change in Misc/NEWS.

Misc/NEWS

index 39007c9409f7343a455099d93e389034c43b0ecd..579c37aa277180bae0b7f06c581d0b8d23ffe18d 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -13,6 +13,13 @@ Core and Builtins
 Library
 -------
 
+- Issue #20311, #20452: poll and epoll now round the timeout away from zero,
+  instead of rounding towards zero, in select and selectors modules:
+  select.epoll.poll(), selectors.PollSelector.poll() and
+  selectors.EpollSelector.poll(). For example, a timeout of one microsecond
+  (1e-6) is now rounded to one millisecondi (1e-3), instead of being rounded to
+  zero.
+
 - asyncio: Some refactoring; add write flow control to unix pipes;
   support wait_for(f, None); don't log broken/disconnected pipes; use
   ValueError instead of assert for forbidden subprocess_{shell,exec}