[Python-checkins] cpython (merge 3.3 -> default): merge #17091: update docstring for _thread.Lock.acquire.

r.david.murray python-checkins at python.org
Mon Feb 4 16:30:22 CET 2013


http://hg.python.org/cpython/rev/a80abb179ba1
changeset:   82005:a80abb179ba1
parent:      82002:288088d5a9b7
parent:      82004:b414b2dfd3d3
user:        R David Murray <rdmurray at bitdance.com>
date:        Mon Feb 04 10:25:51 2013 -0500
summary:
  merge #17091: update docstring for _thread.Lock.acquire.

files:
  Modules/_threadmodule.c |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Modules/_threadmodule.c b/Modules/_threadmodule.c
--- a/Modules/_threadmodule.c
+++ b/Modules/_threadmodule.c
@@ -145,12 +145,12 @@
 }
 
 PyDoc_STRVAR(acquire_doc,
-"acquire([wait]) -> None or bool\n\
+"acquire([wait]) -> bool\n\
 (acquire_lock() is an obsolete synonym)\n\
 \n\
 Lock the lock.  Without argument, this blocks if the lock is already\n\
 locked (even by the same thread), waiting for another thread to release\n\
-the lock, and return None once the lock is acquired.\n\
+the lock, and return True once the lock is acquired.\n\
 With an argument, this will only block if the argument is true,\n\
 and the return value reflects whether the lock is acquired.\n\
 The blocking operation is interruptible.");

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list