]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Closes #18927: Lock.acquire only accepts -1 or positive values for timeout.
authorGeorg Brandl <georg@python.org>
Sun, 6 Oct 2013 08:48:08 +0000 (10:48 +0200)
committerGeorg Brandl <georg@python.org>
Sun, 6 Oct 2013 08:48:08 +0000 (10:48 +0200)
Doc/library/threading.rst

index 5eb00694ad4a75f7cd08cdae05b14c61da0c393c..7c326d1d72dfc9edf963c417f2f94475c08e46c8 100644 (file)
@@ -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.