[Python-ideas] Pipe indentation

Guido van Rossum guido at python.org
Tue Dec 10 07:31:24 CET 2013


On Mon, Dec 9, 2013 at 9:48 PM, Chris Angelico <rosuav at gmail.com> wrote:
> On Tue, Dec 10, 2013 at 4:21 PM, Stephen J. Turnbull <stephen at xemacs.org> wrote:
>> Christopher Welborn writes:
>>
>>  > Here's a link to a screen shot that shows Sublime Text's nesting level
>>  > lines:
>>
>>  > http://imgur.com/yRGNCKu
>>
>>  > ...a lot of editors do this, tab or space.
>>
>> But do they get it Pythonically correct?  Ie, in counting indentation,
>> 1 TAB = 1 SPC, regardless of what it looks like on screen.

The default Python 2 rule is actually that 1 TAB == 8 SPC.

> SciTE gets it Python3ically correct: tab != space regardless of number.

Right. And in Python 2 you can get the same effect with python -tt.

-- 
--Guido van Rossum (python.org/~guido)


More information about the Python-ideas mailing list