summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorcsabella <cheryl.sabella@gmail.com>2017-06-01 01:53:24 (GMT)
committerMariatta <Mariatta@users.noreply.github.com>2017-06-01 01:53:24 (GMT)
commit9abd0bf68f73b3beb56954e22740f0efcf04bc79 (patch)
tree44b79a16fad6019bd34f10fffb9bf594d25ca044 /Doc/library
parent767b6d7d2da6823f71d10e6eeae24451db115c61 (diff)
downloadcpython-9abd0bf68f73b3beb56954e22740f0efcf04bc79.zip
cpython-9abd0bf68f73b3beb56954e22740f0efcf04bc79.tar.gz
cpython-9abd0bf68f73b3beb56954e22740f0efcf04bc79.tar.bz2
bpo-27618: Clarify that threading.Lock is a factory function (GH-1307) (GH-1894)
(cherry picked from commit 56ddfd2eea4d98456a9a99bf2a718f21ee6b2be2)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/threading.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst
index 2792dfd..cda859f 100644
--- 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)