Skip to content
Merged
Show file tree
Hide file tree
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
Fix ReST role
  • Loading branch information
encukou committed Jun 27, 2025
commit 8f93dd24ff5ed64bddbaf226016626584d78fcf6
2 changes: 1 addition & 1 deletion Doc/library/exceptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ The following exceptions are the exceptions that are usually raised.
* Creating a new Python thread.
* :meth:`Joining <threading.Thread.join>` a running daemon thread.
* :func:`os.fork`,
* acquiring a lock such as :cls:`threading.Lock`, when it is known that
* acquiring a lock such as :class:`threading.Lock`, when it is known that
the operation would otherwise deadlock.

See also the :func:`sys.is_finalizing` function.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Acquiring a :cls:`threading.Lock` or :cls:`threading.RLock` at interpreter
Acquiring a :class:`threading.Lock` or :class:`threading.RLock` at interpreter
shutdown will raise :exc:`PythonFinalizationError` if Python can determine
that it would otherwise deadlock.