[issue20320] select.select(timeout) and select.kqueue.control(timeout) must round the timeout to the upper bound

Antoine Pitrou report at bugs.python.org
Wed Feb 12 00:19:18 CET 2014


Antoine Pitrou added the comment:

> I consider that sigtimedwait() is similar to select and kqueue: it's a
> function to wait for an event with a timeout. IMO it should use the
> same rounding method. Don't you think so?
> 
> I don't really care how sigtimedwait() rounds its timeout, I just
> tried to be consistent.

We have lots of "waiting for an event" with a timeout function (e.g.
Lock.acquire()), so if we want to be consistent we have to change all of
them.
But originally this issue only "affects" event loops, so presumably it'd
be reasonable to stick to select()-alikes.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20320>
_______________________________________


More information about the Python-bugs-list mailing list