Skip to content
Merged
Changes from all commits
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
5 changes: 3 additions & 2 deletions Doc/library/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading