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 Martin Sekera
Recipients Martin Sekera, arigo, martin.panter, pitrou, r.david.murray
Date 2015-03-14.22:58:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426373903.03.0.748118842726.issue23441@psf.upfronthosting.co.za>
In-reply-to
Content
Is it necessary to force a predefined tab width (4) onto the user here? I prefer 2-character tabs for example, and have all my terminals set up accordingly (setterm --regtabs 2). I presume many people prefer 8-column tabs, hence the default width in most software.

Additionally, the user shouldn't have to backspace 4 characters to remove one level of indentation. Not only is it annoying, it is also prone to errors if the user miscounts (and ends up with an IndentationError).

I've been using the attached patch (just 5 lines) to emulate the behavior familiar from unix shells: pressing tab activates the completion function, but indents if the line is empty (i.e. '' or all whitespace). It also indents properly if the cursor is moved to whitespace in front of a line, as one would expect.
History
Date User Action Args
2015-03-14 22:58:23Martin Sekerasetrecipients: + Martin Sekera, arigo, pitrou, r.david.murray, martin.panter
2015-03-14 22:58:23Martin Sekerasetmessageid: <1426373903.03.0.748118842726.issue23441@psf.upfronthosting.co.za>
2015-03-14 22:58:23Martin Sekeralinkissue23441 messages
2015-03-14 22:58:22Martin Sekeracreate