]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-37892: Use space indents in IDLE Shell (GH-25678)
authorTerry Jan Reedy <tjreedy@udel.edu>
Thu, 29 Apr 2021 10:48:18 +0000 (06:48 -0400)
committerGitHub <noreply@github.com>
Thu, 29 Apr 2021 10:48:18 +0000 (06:48 -0400)
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/NEWS.txt
Lib/idlelib/pyshell.py
Misc/NEWS.d/next/IDLE/2021-04-29-02-40-41.bpo-37892.bgW2fk.rst [new file with mode: 0644]

index ca4280ff4cff8d2e05b6804f44534acc7a6634cd..83afe3ecac908cac272946ed6bf59142015c372b 100644 (file)
@@ -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.
index 5830b7aa31a72c86ec195c6ced756559b1931434..447e9ec3e47563e2b6b32b35893bf126ab0b5faf 100755 (executable)
@@ -889,11 +889,11 @@ class PyShell(OutputWindow):
 
         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
 
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 (file)
index 0000000..c8bb84b
--- /dev/null
@@ -0,0 +1 @@
+Indent IDLE Shell input with spaces instead of tabs