Antoine Pitrou <pit...@free.fr> added the comment: > You are right, sorry. It's Windows XP Prof, Python 3.2a2. > > The differences in OS may be the cause, but the problem doesn't appear > in 3.1 on the same machine.
The implementation changed between 3.1 and 3.2. On 3.1, wait() with timeout ran a polling loop until either the event was set or the delay was expired (and it used time() itself, which kind of guarantees that your case would always produce the expected result). On 3.2, wait() with timeout simply calls the adequate OS function (sem_timedwait under POSIX, WaitForSingleObject under Windows). It is actually more precise, because the polling loop and its sleep() calls are eliminated. Also, I just traced the WaitForSingleObject call under a Windows VM, and it gets called with the correct timeout value (100 ms). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9892> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com