[Python-ideas] Pipe indentation

Steve Dower Steve.Dower at microsoft.com
Thu Dec 12 00:45:45 CET 2013


A space is always the same width, and tabs are normally rendered as multiple spaces in code editors, so it works just fine. Word wrap is where things get fun... (though I've only had one person complain that my Visual Studio extension doesn't handle it properly... who wraps code?)

Top posted from my Windows Phone
________________________________
From: Antoine Pitrou<mailto:solipsis at pitrou.net>
Sent: ‎12/‎11/‎2013 0:36
To: python-ideas at python.org<mailto:python-ideas at python.org>
Subject: Re: [Python-ideas] Pipe indentation

On Tue, 10 Dec 2013 14:21:07 +0900
"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.

Generally they're purely graphical, i.e. they don't care about the
*logical nesting* of your code, only about how many spaces are
drawn on screen.
(no, I don't know what it does with a non-monospaced font)

Regards

Antoine.


_______________________________________________
Python-ideas mailing list
Python-ideas at python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20131211/f9186229/attachment.html>


More information about the Python-ideas mailing list