mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
bpo-27618: Clarify that threading.Lock is a factory function (GH-1307)
This commit is contained in:
parent
a5aa72ac78
commit
56ddfd2eea
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue