]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-28795: Signal documentation: Fix misleading statement. (GH-13121)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 May 2019 15:55:39 +0000 (08:55 -0700)
committerGitHub <noreply@github.com>
Tue, 7 May 2019 15:55:39 +0000 (08:55 -0700)
(cherry picked from commit e85ef7a7eacdef2f43e6bf2e67f335100e7ef2da)

Co-authored-by: Julien Palard <julien@palard.fr>
Doc/library/signal.rst

index 148a59c7105e16c66f4b23cbd9c7359c8347e5f5..b6716eea95fbc8c22b931e127095b006a4f5ef4f 100644 (file)
@@ -16,7 +16,8 @@ The :func:`signal.signal` function allows defining custom handlers to be
 executed when a signal is received.  A small number of default handlers are
 installed: :const:`SIGPIPE` is ignored (so write errors on pipes and sockets
 can be reported as ordinary Python exceptions) and :const:`SIGINT` is
-translated into a :exc:`KeyboardInterrupt` exception.
+translated into a :exc:`KeyboardInterrupt` exception if the parent process
+has not changed it.
 
 A handler for a particular signal, once set, remains installed until it is
 explicitly reset (Python emulates the BSD style interface regardless of the