Skip to content

Commit 56ddfd2

Browse files
csabellaMariatta
authored andcommitted
bpo-27618: Clarify that threading.Lock is a factory function (pythonGH-1307)
1 parent a5aa72a commit 56ddfd2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/library/threading.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,9 @@ All methods are executed atomically.
371371
lock, subsequent attempts to acquire it block, until it is released; any
372372
thread may release it.
373373

374-
.. versionchanged:: 3.3
375-
Changed from a factory function to a class.
374+
Note that ``Lock`` is actually a factory function which returns an instance
375+
of the most efficient version of the concrete Lock class that is supported
376+
by the platform.
376377

377378

378379
.. method:: acquire(blocking=True, timeout=-1)

0 commit comments

Comments
 (0)