projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5aa72a
)
bpo-27618: Clarify that threading.Lock is a factory function (GH-1307)
author
csabella
<chekat2@gmail.com>
Thu, 1 Jun 2017 00:14:19 +0000
(20:14 -0400)
committer
Mariatta
<Mariatta@users.noreply.github.com>
Thu, 1 Jun 2017 00:14:19 +0000
(17:14 -0700)
Doc/library/threading.rst
patch
|
blob
|
history
diff --git
a/Doc/library/threading.rst
b/Doc/library/threading.rst
index 2792dfdce04c6c035f4a87e0f2283c73ade4e1cb..cda859fe4cbd3a09579610b66735b20dd4f3e464 100644
(file)
--- a/
Doc/library/threading.rst
+++ b/
Doc/library/threading.rst
@@
-371,8
+371,9
@@
All methods are executed atomically.
lock, subsequent attempts to acquire it block, until it is released; any
thread may release it.
- .. versionchanged:: 3.3
- Changed from a factory function to a class.
+ Note that ``Lock`` is actually a factory function which returns an instance
+ of the most efficient version of the concrete Lock class that is supported
+ by the platform.
.. method:: acquire(blocking=True, timeout=-1)