[Python-checkins] cpython (3.3): Closes #18927: Lock.acquire only accepts -1 or positive values for timeout.
georg.brandl
python-checkins at python.org
Sun Oct 6 10:48:03 CEST 2013
http://hg.python.org/cpython/rev/ff5fb419967f
changeset: 86029:ff5fb419967f
branch: 3.3
parent: 86026:b370cd67a677
user: Georg Brandl <georg at python.org>
date: Sun Oct 06 10:48:08 2013 +0200
summary:
Closes #18927: Lock.acquire only accepts -1 or positive values for timeout.
files:
Doc/library/threading.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst
--- a/Doc/library/threading.rst
+++ b/Doc/library/threading.rst
@@ -378,7 +378,7 @@
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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list