[issue9892] Event spends less time in wait() than requested
Dmitry Dvoinikov
report at bugs.python.org
Sat Sep 18 14:58:11 CEST 2010
New submission from Dmitry Dvoinikov <dmitry at targeted.org>:
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()
print(after - before)
# under Python 3.1 prints 0.109999...
# under Python 3.2 prints 0.092999...
---------------------------------------------------------
----------
components: Library (Lib)
messages: 116772
nosy: ddvoinikov
priority: normal
severity: normal
status: open
title: Event spends less time in wait() than requested
type: behavior
versions: Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9892>
_______________________________________
More information about the Python-bugs-list
mailing list