[issue9892] Event spends less time in wait() than requested

2010-09-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm closing because there doesn't seem to be a genuine bug in Python. But thanks for reporting anyway! The threading facilities in 3.2 need real-world testing. -- resolution: -> invalid status: open -> closed ___

[issue9892] Event spends less time in wait() than requested

2010-09-18 Thread Antoine Pitrou
Antoine Pitrou 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

[issue9892] Event spends less time in wait() than requested

2010-09-18 Thread Dmitry Dvoinikov
Dmitry Dvoinikov 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. -- ___ Python tracker

[issue9892] Event spends less time in wait() than requested

2010-09-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: It consistently doesn't here: 0.10013985633850098 0.1001589298248291 (etc.) What system are you using? There are two factors: - accuracy of the timeout in the wait() function - accuracy of the results returned by time() Apart from a possible bug in Python, bot

[issue9892] Event spends less time in wait() than requested

2010-09-18 Thread Dmitry Dvoinikov
New submission from Dmitry Dvoinikov : If you request Event.wait(x), the call consistently returns in less than x seconds. Sample: - from threading import Event from time import time e = Event() before = time() e.wait(0.1) after = time()