[Python-ideas] Pipe indentation

Ryan Gonzalez rymg19 at gmail.com
Thu Dec 12 23:05:58 CET 2013


I usually span the code across multiple lines if it doesn't fit in the IDLE
window. I save gedit's Word Wrap for when I'm lazy.


On Wed, Dec 11, 2013 at 7:11 PM, Andrew Barnert <abarnert at yahoo.com> wrote:

> On Dec 11, 2013, at 15:45, Steve Dower <Steve.Dower at microsoft.com> wrote:
>
>  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?)
>
>
> You mean viewing soft-wrapped if it goes beyond the window width? I do
> that (when I can't just reject or edit the code to fit properly in the
> first place). Much better than horizontally scrolling, especially in a
> terminal session. It's ugly no matter what you do, but at least you can see
> it.
>
>
> Top posted from my Windows Phone
>  ------------------------------
> From: Antoine Pitrou <solipsis at pitrou.net>
> Sent: 12/11/2013 0:36
> To: 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/
>
> _______________________________________________
> 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/
>
>
> _______________________________________________
> 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/
>



-- 
Ryan
When your hammer is C++, everything begins to look like a thumb.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20131212/36d2366b/attachment.html>


More information about the Python-ideas mailing list