https://github.com/python/cpython/commit/13e9c2d18de26a590f9b11b1add637200bf66dd1 commit: 13e9c2d18de26a590f9b11b1add637200bf66dd1 branch: main author: Doug Hoskisson <[email protected]> committer: hugovk <[email protected]> date: 2025-10-14T11:34:53+03:00 summary:
gh-114827: clarify `threading.Event.wait` timeout behavior (#114834) Co-authored-by: Kumar Aditya <[email protected]> files: M Lib/threading.py diff --git a/Lib/threading.py b/Lib/threading.py index fac88d8b20c60d..4ebceae7029870 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -653,7 +653,8 @@ def wait(self, timeout=None): (or fractions thereof). This method returns the internal flag on exit, so it will always return - True except if a timeout is given and the operation times out. + ``True`` except if a timeout is given and the operation times out, when + it will return ``False``. """ with self._cond: _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
