This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Christian.Kleineidam
Recipients Christian.Kleineidam
Date 2014-09-07.13:17:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410095822.07.0.751550923398.issue22354@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2014-09-07 13:17:02Christian.Kleineidamsetrecipients: + Christian.Kleineidam
2014-09-07 13:17:02Christian.Kleineidamsetmessageid: <1410095822.07.0.751550923398.issue22354@psf.upfronthosting.co.za>
2014-09-07 13:17:01Christian.Kleineidamlinkissue22354 messages
2014-09-07 13:17:01Christian.Kleineidamcreate