Text of bugs.python.org › issue47238 as Styx crawled it on Nov 18, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

Issue 47238: Python threading.Event().wait() depends on the system time - Python tracker

Python Home About News Documentation Downloads Community Foundation Developer's Guide Issue Tracker Issues Search Random Issue Summaries Issues with patch Easy issues Stats User Administration User List Committer List Help Tracker Documentation Tracker Development Report Tracker Problem Issue47238 ➜ This issue tracker has been migrated to GitHub , and is currently read-only . For more information, see the GitHub FAQs in the Python's Developer Guide.

Created on 2022-04-06 10:19 by AleksandrAQ , last changed 2022-04-11 14:59 by admin . Files File name Uploaded Description Edit reproduction.py AleksandrAQ , 2022-04-06 10:19 You need root privileges to change the system time. Messages (1) msg416851 - (view) Author: Aleksandr (AleksandrAQ) Date: 2022-04-06 10:19 This happens on Ubuntu on Python versions 3.8.5 and 3.10.4 I have two threads that can change the system time to a day ago.

If the change in the system time for a day occurs at the time of wait, then I hang for one day plus the waiting time. I thought Event.wait() uses a monotonous clock, but this behavior points to an absolute clock. Are there any solutions? History Date User Action Args 2022-04-11 14:59:58 admin set github: 91394 2022-04-06 10:19:09 AleksandrAQ create Supported by The Python Software Foundation , Powered by Roundup Copyright © 1990-2022, Python Software Foundation Legal Statements