From 1267ad2eb250cd33fcfed4ea1285090dc437f709 Mon Sep 17 00:00:00 2001 From: Cheryl Sabella Date: Wed, 26 Apr 2017 13:34:36 -0400 Subject: [PATCH] bpo-27618: DOC: Update threading.Lock to define it as factory function --- Doc/library/threading.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst index 2792dfdce04c6c0..cda859fe4cbd3a0 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)