https://github.com/python/cpython/commit/921f61bd82908ab245d6776068a366da152788d4
commit: 921f61bd82908ab245d6776068a366da152788d4
branch: main
author: Adorilson Bezerra <[email protected]>
committer: encukou <[email protected]>
date: 2025-09-08T14:02:36+02:00
summary:
Doc: Apply keyword role around finally (in sys module doc) (GH-138544)
files:
M Doc/library/sys.rst
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 30fd4db1fd1851..70d68c06187b60 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -523,8 +523,9 @@ always available. Unless explicitly noted otherwise, all
variables are read-only
Since :func:`exit` ultimately "only" raises an exception, it will only exit
the process when called from the main thread, and the exception is not
- intercepted. Cleanup actions specified by finally clauses of :keyword:`try`
statements
- are honored, and it is possible to intercept the exit attempt at an outer
level.
+ intercepted. Cleanup actions specified by :keyword:`finally` clauses of
+ :keyword:`try` statements are honored, and it is possible to intercept the
+ exit attempt at an outer level.
.. versionchanged:: 3.6
If an error occurs in the cleanup after the Python interpreter
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]