summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-10-06 08:48:08 (GMT)
committerGeorg Brandl <georg@python.org>2013-10-06 08:48:08 (GMT)
commitb19ef1846c5c37f9a0ed9f385a35fdd8d4b9a876 (patch)
treebcb5a1001f6a79ef7385eec8e09b25e3d0a154d2
parent242e6a0bce9143c62262817b17b46d32a3c916a3 (diff)
downloadcpython-b19ef1846c5c37f9a0ed9f385a35fdd8d4b9a876.zip
cpython-b19ef1846c5c37f9a0ed9f385a35fdd8d4b9a876.tar.gz
cpython-b19ef1846c5c37f9a0ed9f385a35fdd8d4b9a876.tar.bz2
Closes #18927: Lock.acquire only accepts -1 or positive values for timeout.
-rw-r--r--Doc/library/threading.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst
index 5eb0069..7c326d1 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.