summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2019-02-23 10:43:49 -0800
committerGitHub <noreply@github.com>2019-02-23 10:43:49 -0800
commit06babb24225d41a76e4aee975380294ca1ee1d7c (patch)
tree80979b7442a07733fc0c72bf06190e80bf702309 /Doc
parentbe3b295838547bba267eb08434b418ef0df87ee0 (diff)
downloadcpython-git-06babb24225d41a76e4aee975380294ca1ee1d7c.tar.gz
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.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.8.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index 72aaafd1b3..f21175a5a2 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -133,6 +133,13 @@ Other Language Changes
:meth:`datetime.datetime.astimezone`.
(Contributed by Paul Ganssle in :issue:`32417`.)
+* When the Python interpreter is interrupted by Ctrl-C (SIGINT) and the
+ resulting :exc:`KeyboardInterrupt` exception is not caught, the Python process
+ now exits via a SIGINT signal or with the correct exit code such that the
+ calling process can detect that it died due to a Ctrl-C. Shells on POSIX
+ and Windows use this to properly terminate scripts in interactive sessions.
+ (Contributed by Google via Gregory P. Smith in :issue:`1054041`.)
+
New Modules
===========