[Python-checkins] python/dist/src/Doc/lib libthread.tex, 1.30, 1.31 libthreading.tex, 1.20, 1.21
akuchling@users.sourceforge.net
akuchling at users.sourceforge.net
Thu Jun 2 18:59:21 CEST 2005
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16432
Modified Files:
libthread.tex libthreading.tex
Log Message:
[Bug #1209880] Describe only the True/False return values from lock.acquire()
Index: libthread.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libthread.tex,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- libthread.tex 9 Jul 2003 12:41:55 -0000 1.30
+++ libthread.tex 2 Jun 2005 16:59:18 -0000 1.31
@@ -81,11 +81,11 @@
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: libthreading.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libthreading.tex,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- libthreading.tex 17 Jul 2004 13:35:43 -0000 1.20
+++ libthreading.tex 2 Jun 2005 16:59:18 -0000 1.21
@@ -167,8 +167,7 @@
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.
More information about the Python-checkins
mailing list