:meth:`Lock.acquire`. Specifiying a timeout greater than this value will
raise an :exc:`OverflowError`.
+ .. versionadded:: 3.2
+
Lock objects have the following methods:
The return value is ``True`` if the lock is acquired successfully,
``False`` if not.
+ .. versionchanged:: 3.2
+ The *timeout* parameter is new.
+
.. method:: lock.release()
Releases the lock. The lock must have been acquired earlier, but not
Specifiying a timeout greater than this value will raise an
:exc:`OverflowError`.
+ .. versionadded:: 3.2
Detailed interfaces for the objects are documented below.
The return value is ``True`` if the lock is acquired successfully,
``False`` if not (for example if the *timeout* expired).
+ .. versionchanged:: 3.2
+ The *timeout* parameter is new.
.. method:: Lock.release()
and as long as the lock cannot be acquired. Return true if the lock has
been acquired, false if the timeout has elapsed.
+ .. versionchanged:: 3.2
+ The *timeout* parameter is new.
+
.. method:: RLock.release()