[New-bugs-announce] [issue22354] Highlite tabs in the IDLE

Christian Kleineidam report at bugs.python.org
Sun Sep 7 15:17:02 CEST 2014


New submission from Christian Kleineidam:

Python accepts both tabs and spaces. Code that mixes tab and spaces can lead to problematic issues. Especially beginners who are new to python can be confused if they copy some code and it doesn't work as they expected because of issues of invisible whitespace.

Beginners are also more likely to use the editor that comes with the IDLE instead of using a more specialised editor. 

If the IDLE would highlite the fact that tabs are used instead of spaces, it would be easier to spot the issue. I therefore suggest that the IDLE highlites tabs both in the shell mode and the editor mode.

Possible ways to highlite is to have a light grey: 
<--> 
» (at the beginning of the tab)
PyCharm style error underlining

----------
components: IDLE
messages: 226535
nosy: Christian.Kleineidam
priority: normal
severity: normal
status: open
title: Highlite tabs in the IDLE
type: enhancement
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22354>
_______________________________________


More information about the New-bugs-announce mailing list