Visitar URL original
gh-70795: Rework RLock documentation by samatjain · Pull Request #103853 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
suggestion from gpshead
  • Loading branch information
samatjain committed Apr 26, 2023
commit 6a815ec64acf6552b9447e1ebbb3f490fefb6242
4 changes: 2 additions & 2 deletions Doc/library/threading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,8 @@ call release as many times the lock has been acquired can lead to deadlock.
immediately.

In all cases, if the thread was able to acquire the lock, return ``True``.
If the thread was unable to acquire the lock (i.e. if *blocking* is False, or
*timeout* is reached or is non-positive) return ``False``.
If the thread was unable to acquire the lock (i.e. if not blocking or
the timeout was reached) return ``False``.

If called multiple times, failing to call :meth:`~RLock.release` as many times
may lead to deadlock. Consider using :class:`!RLock` as a context manager rather than
Expand Down