From: Georg Brandl Date: Sun, 6 Oct 2013 08:48:08 +0000 (+0200) Subject: Closes #18927: Lock.acquire only accepts -1 or positive values for timeout. X-Git-Tag: v3.4.0a4~255^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b19ef1846c5c37f9a0ed9f385a35fdd8d4b9a876;p=thirdparty%2FPython%2Fcpython.git Closes #18927: Lock.acquire only accepts -1 or positive values for timeout. --- diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst index 5eb00694ad4a..7c326d1d72df 100644 --- a/Doc/library/threading.rst +++ b/Doc/library/threading.rst @@ -378,7 +378,7 @@ All methods are executed atomically. When invoked with the floating-point *timeout* argument set to a positive value, block for at most the number of seconds specified by *timeout* - and as long as the lock cannot be acquired. A negative *timeout* argument + and as long as the lock cannot be acquired. A *timeout* argument of ``-1`` specifies an unbounded wait. It is forbidden to specify a *timeout* when *blocking* is false.