From 2db82f7a94d7dfeeb77ebafb6e65ecc2d76db08e Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sat, 23 Feb 2019 10:19:06 -0800 Subject: [PATCH 1/3] Document the Ctrl-C improvement. --- Doc/whatsnew/3.8.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index a531d2d56af6ee9..15d0e77316f678a 100644 --- a/Doc/whatsnew/3.8.rst +++ b/Doc/whatsnew/3.8.rst @@ -133,6 +133,12 @@ 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 `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. + New Modules =========== From b0c8a36a78f769a754255ed075b0b76880b3e9c8 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sat, 23 Feb 2019 10:24:59 -0800 Subject: [PATCH 2/3] link to the issue, fix news issue#. --- Doc/whatsnew/3.8.rst | 1 + ...051.BL-WLd.rst => 2019-02-16-00-42-32.bpo-1054041.BL-WLd.rst} | 0 2 files changed, 1 insertion(+) rename Misc/NEWS.d/next/Core and Builtins/{2019-02-16-00-42-32.bpo-1054051.BL-WLd.rst => 2019-02-16-00-42-32.bpo-1054041.BL-WLd.rst} (100%) diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index 15d0e77316f678a..931dd1cb1122c5d 100644 --- a/Doc/whatsnew/3.8.rst +++ b/Doc/whatsnew/3.8.rst @@ -138,6 +138,7 @@ Other Language Changes 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 diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-02-16-00-42-32.bpo-1054051.BL-WLd.rst b/Misc/NEWS.d/next/Core and Builtins/2019-02-16-00-42-32.bpo-1054041.BL-WLd.rst similarity index 100% rename from Misc/NEWS.d/next/Core and Builtins/2019-02-16-00-42-32.bpo-1054051.BL-WLd.rst rename to Misc/NEWS.d/next/Core and Builtins/2019-02-16-00-42-32.bpo-1054041.BL-WLd.rst From 5f994290bf06e72e93a3205c44afb8e71b91bbd9 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sat, 23 Feb 2019 10:33:55 -0800 Subject: [PATCH 3/3] satisfy rstlint --- Doc/whatsnew/3.8.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index 931dd1cb1122c5d..ea5b2da1ddb6ce0 100644 --- a/Doc/whatsnew/3.8.rst +++ b/Doc/whatsnew/3.8.rst @@ -133,9 +133,9 @@ 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 `KeyboardInterrupt` exception is not caught, the Python process - now exits via a `SIGINT` signal or with the correct exit code such that the +* 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`.)