]> granicus.if.org Git - python/commitdiff
bpo-1054041: Add What's New docs. (GH-11999)
authorGregory P. Smith <greg@krypto.org>
Sat, 23 Feb 2019 18:43:49 +0000 (10:43 -0800)
committerGitHub <noreply@github.com>
Sat, 23 Feb 2019 18:43:49 +0000 (10:43 -0800)
Add What's New docs about the Ctrl-C improvement. Correct the issue number in the NEWS entry.

Doc/whatsnew/3.8.rst
Misc/NEWS.d/next/Core and Builtins/2019-02-16-00-42-32.bpo-1054041.BL-WLd.rst [moved from Misc/NEWS.d/next/Core and Builtins/2019-02-16-00-42-32.bpo-1054051.BL-WLd.rst with 100% similarity]

index 72aaafd1b3dc0770873235bdca1efe9a8f083013..f21175a5a2a86c833606434d3d368fa9d322aa74 100644 (file)
@@ -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
 ===========