Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions 7 Lib/idlelib/NEWS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions 6 Lib/idlelib/pyshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,11 +889,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

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Indent IDLE Shell input with spaces instead of tabs
Morty Proxy This is a proxified and sanitized view of the page, visit original site.