Skip to content

Commit 06babb2

Browse files
authored
bpo-1054041: Add What's New docs. (GH-11999)
Add What's New docs about the Ctrl-C improvement. Correct the issue number in the NEWS entry.
1 parent be3b295 commit 06babb2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Doc/whatsnew/3.8.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ Other Language Changes
133133
:meth:`datetime.datetime.astimezone`.
134134
(Contributed by Paul Ganssle in :issue:`32417`.)
135135

136+
* When the Python interpreter is interrupted by Ctrl-C (SIGINT) and the
137+
resulting :exc:`KeyboardInterrupt` exception is not caught, the Python process
138+
now exits via a SIGINT signal or with the correct exit code such that the
139+
calling process can detect that it died due to a Ctrl-C. Shells on POSIX
140+
and Windows use this to properly terminate scripts in interactive sessions.
141+
(Contributed by Google via Gregory P. Smith in :issue:`1054041`.)
142+
136143

137144
New Modules
138145
===========

0 commit comments

Comments
 (0)