Index: Doc/library/threading.rst =================================================================== --- Doc/library/threading.rst (revision 62767) +++ Doc/library/threading.rst (working copy) @@ -518,13 +518,14 @@ .. method:: Event.wait([timeout]) - Block until the internal flag is true. If the internal flag is true on entry, - return immediately. Otherwise, block until another thread calls :meth:`set` to - set the flag to true, or until the optional timeout occurs. + Block until the internal flag is true, and return the value of the internal + flag. If the internal flag is true on entry, return immediately. Otherwise, + block until another thread calls :meth:`set` to set the flag to true, or + until the optional timeout occurs. When the timeout argument is present and not ``None``, it should be a floating point number specifying a timeout for the operation in seconds (or fractions - thereof). + thereof). If the operation times out, the method returns false. .. _thread-objects: Index: Lib/threading.py =================================================================== --- Lib/threading.py (revision 62767) +++ Lib/threading.py (working copy) @@ -373,6 +373,7 @@ try: if not self.__flag: self.__cond.wait(timeout) + return self.__flag finally: self.__cond.release()