8000 gh-70795: Rework RLock documentation by samatjain · Pull Request #103853 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-70795: Rework RLock documentation #103853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
May 22, 2024
Merged
Prev Previous commit
Next Next commit
Update Doc/library/threading.rst
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
  • Loading branch information
samatjain and CAM-Gerlach authored Apr 26, 2023
commit 90b3559d90cbdcb7a605d7dc6bbeb7a0805a8de8
5 changes: 3 additions & 2 deletions Doc/library/threading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -633,8 +633,9 @@ call release as many times the lock has been acquired can lead to deadlock.

.. seealso::

:ref:`Using RLock as a context manager <with-locks>` is recommended
over manual :meth:`!acquire` and :meth:`release` calls whenever practical.
:ref:`Using RLock as a context manager <with-locks>`
Recommended over manual :meth:`!acquire` and :meth:`release` calls
whenever practical.


When invoked with the *blocking* argument set to ``True`` (the default):
Expand Down
0