diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2019-05-20 02:52:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-20 02:52:22 (GMT) |
commit | 6d965b39b7a486dd9e96a60b19ee92382d668299 (patch) | |
tree | 8f314cbd9cda4bfc8aa7e2544a18f2bec6035fb2 /Doc/library | |
parent | 53d378c81286644138415cb56da52a7351e1a477 (diff) | |
download | cpython-6d965b39b7a486dd9e96a60b19ee92382d668299.zip cpython-6d965b39b7a486dd9e96a60b19ee92382d668299.tar.gz cpython-6d965b39b7a486dd9e96a60b19ee92382d668299.tar.bz2 |
bpo-36958: In IDLE, print exit message (GH-13435)
Print any argument other than None or int passed to SystemExit
or sys.exit().
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/idle.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst index f511d64..c51cf19 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 ^^^^^^^^^^^^^^^^^^^^ |