Commit 56ddfd2e authored by csabella's avatar csabella Committed by Mariatta

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

parent a5aa72ac
...@@ -371,8 +371,9 @@ All methods are executed atomically. ...@@ -371,8 +371,9 @@ All methods are executed atomically.
lock, subsequent attempts to acquire it block, until it is released; any lock, subsequent attempts to acquire it block, until it is released; any
thread may release it. thread may release it.
.. versionchanged:: 3.3 Note that ``Lock`` is actually a factory function which returns an instance
Changed from a factory function to a class. of the most efficient version of the concrete Lock class that is supported
by the platform.
.. method:: acquire(blocking=True, timeout=-1) .. method:: acquire(blocking=True, timeout=-1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment