From d5b9e015bc1d74b8b033d5a835eb07bbfbd96d13 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Wed, 28 Apr 2021 00:30:31 -0400 Subject: [PATCH 1/3] bpo-37892: Use space indents in IDLE Shell Adding a newline to the prompt moves it out of the way of user code input, which now starts at the left margin, along with continuation lines. --- Lib/idlelib/pyshell.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py index 0ee2254807fe8f6..e46c6b2cc19d998 100755 --- a/Lib/idlelib/pyshell.py +++ b/Lib/idlelib/pyshell.py @@ -873,11 +873,11 @@ def __init__(self, flist=None): OutputWindow.__init__(self, flist, None, None) - self.usetabs = True + self.usetabs = False # indentwidth must be 8 when using tabs. See note in EditorWindow: - self.indentwidth = 8 + self.indentwidth = 4 - self.sys_ps1 = sys.ps1 if hasattr(sys, 'ps1') else '>>> ' + self.sys_ps1 = sys.ps1 if hasattr(sys, 'ps1') else '>>>\n' self.prompt_last_line = self.sys_ps1.split('\n')[-1] self.prompt = self.sys_ps1 # Changes when debug active From 5a67bceb468e7908c1184385d27cd5801395c925 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Thu, 29 Apr 2021 02:50:35 -0400 Subject: [PATCH 2/3] Add blurb and idlelib NEW items. --- Misc/NEWS.d/next/IDLE/2021-04-29-02-40-41.bpo-37892.bgW2fk.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/IDLE/2021-04-29-02-40-41.bpo-37892.bgW2fk.rst diff --git a/Misc/NEWS.d/next/IDLE/2021-04-29-02-40-41.bpo-37892.bgW2fk.rst b/Misc/NEWS.d/next/IDLE/2021-04-29-02-40-41.bpo-37892.bgW2fk.rst new file mode 100644 index 000000000000000..c8bb84bb4004131 --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/2021-04-29-02-40-41.bpo-37892.bgW2fk.rst @@ -0,0 +1 @@ +Indent IDLE Shell input with spaces instead of tabs From 1b1cb4a106dc0917a8b09243d641c48e0f5bf1b0 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Thu, 29 Apr 2021 02:53:25 -0400 Subject: [PATCH 3/3] Include idlelib NEWS. --- Lib/idlelib/NEWS.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index ca4280ff4cff8d2..83afe3ecac908ca 100644 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -4,6 +4,13 @@ Released on 2021-10-04? ========================= +bpo-37892: Change Shell input indents from tabs to spaces. + +bpo-37903: Move the Shell input prompt to a side bar. + +bpo-43655: Make window managers on macOS and X Window recognize +IDLE dialog windows as dialogs. + bpo-43283: Document why printing to IDLE's Shell is often slower than printing to a system terminal and that it can be made faster by pre-formatting a single string before printing.