[Python-checkins] cpython (3.2): #17091: update docstring for _thread.Lock.acquire.

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


http://hg.python.org/cpython/rev/0cc51c04aa20
changeset:   82003:0cc51c04aa20
branch:      3.2
parent:      82000:4be538a058a8
user:        R David Murray <rdmurray at bitdance.com>
date:        Mon Feb 04 10:15:58 2013 -0500
summary:
  #17091: update docstring for _thread.Lock.acquire.

The main docs were fixed to remove mention of None long ago,
but the docstring was not.  Reported by Armin Rigo, patch
by Ian Cordasco.

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
@@ -138,12 +138,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