bpo-27618: Clarify that threading.Lock is a factory function (GH-1307) (GH-1894)

(cherry picked from commit 56ddfd2eea)
This commit is contained in:
csabella 2017-05-31 21:53:24 -04:00 committed by Mariatta
parent 767b6d7d2d
commit 9abd0bf68f

View file

@ -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)