]> granicus.if.org Git - python/commitdiff
[Bug #1209880] Describe only the True/False return values from lock.acquire()
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 2 Jun 2005 16:59:18 +0000 (16:59 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 2 Jun 2005 16:59:18 +0000 (16:59 +0000)
Doc/lib/libthread.tex
Doc/lib/libthreading.tex

index 052867fc50d4aa4d5fd2f84f1c5f36ef37c939f0..4914948d6fb9a485fb2ff7952fdd6a25f1a37d86 100644 (file)
@@ -81,11 +81,11 @@ Lock objects have the following methods:
 Without the optional argument, this method acquires the lock
 unconditionally, if necessary waiting until it is released by another
 thread (only one thread at a time can acquire a lock --- that's their
-reason for existence), and returns \code{None}.  If the integer
+reason for existence).  If the integer
 \var{waitflag} argument is present, the action depends on its
 value: if it is zero, the lock is only acquired if it can be acquired
 immediately without waiting, while if it is nonzero, the lock is
-acquired unconditionally as before.  If an argument is present, the
+acquired unconditionally as before.  The
 return value is \code{True} if the lock is acquired successfully,
 \code{False} if not.
 \end{methoddesc}
index 5b50a22bb7be859714fc37029685abc0f44b66a5..35269748af32bea2f7e3dc133d447cd2fc11a2a3 100644 (file)
@@ -167,8 +167,7 @@ All methods are executed atomically.
 Acquire a lock, blocking or non-blocking.
 
 When invoked without arguments, block until the lock is
-unlocked, then set it to locked, and return.  There is no
-return value in this case.
+unlocked, then set it to locked, and return true.  
 
 When invoked with the \var{blocking} argument set to true, do the
 same thing as when called without arguments, and return true.