summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-05-20 00:16:53 -0700
committerGitHub <noreply@github.com>2019-05-20 00:16:53 -0700
commit2d94d4f1a5f54f73450d2982eab54a6301741a32 (patch)
tree21e907d4b7900c4c958090cc7ed479188d94867e /Doc
parent64b0bdba7ee30ecc5c4c5ad46fb6afd6c0ddd487 (diff)
downloadcpython-git-2d94d4f1a5f54f73450d2982eab54a6301741a32.tar.gz
bpo-36958: In IDLE, print exit message (GH-13435)
Print any argument other than None or int passed to SystemExit or sys.exit(). (cherry picked from commit 6d965b39b7a486dd9e96a60b19ee92382d668299) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/idle.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst
index f511d64b55..c51cf19e97 100644
--- a/Doc/library/idle.rst
+++ b/Doc/library/idle.rst
@@ -700,6 +700,9 @@ If ``sys`` is reset by user code, such as with ``importlib.reload(sys)``,
IDLE's changes are lost and input from the keyboard and output to the screen
will not work correctly.
+When user code raises SystemExit either directly or by calling sys.exit, IDLE
+returns to a Shell prompt instead of exiting.
+
User output in Shell
^^^^^^^^^^^^^^^^^^^^