mirror of
https://github.com/python/cpython.git
synced 2025-10-16 11:49:57 +00:00
merge #17091: update docstring for _thread.Lock.acquire.
This commit is contained in:
commit
811724ce7f
1 changed files with 2 additions and 2 deletions
|
@ -145,12 +145,12 @@ lock_PyThread_acquire_lock(lockobject *self, PyObject *args, PyObject *kwds)
|
||||||
}
|
}
|
||||||
|
|
||||||
PyDoc_STRVAR(acquire_doc,
|
PyDoc_STRVAR(acquire_doc,
|
||||||
"acquire([wait]) -> None or bool\n\
|
"acquire([wait]) -> bool\n\
|
||||||
(acquire_lock() is an obsolete synonym)\n\
|
(acquire_lock() is an obsolete synonym)\n\
|
||||||
\n\
|
\n\
|
||||||
Lock the lock. Without argument, this blocks if the lock is already\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\
|
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\
|
With an argument, this will only block if the argument is true,\n\
|
||||||
and the return value reflects whether the lock is acquired.\n\
|
and the return value reflects whether the lock is acquired.\n\
|
||||||
The blocking operation is interruptible.");
|
The blocking operation is interruptible.");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue