Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82094

Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?

References <CAFaCOgxq6jp5bDXcKvXztAXdwxTOBoYRmEf2v4g_1nAYwJutGw@mail.gmail.com>
Date 2014-12-08 10:25 +0800
Subject Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?
From jtan <admin@grails.asia>
Newsgroups comp.lang.python
Message-ID <mailman.16697.1418005550.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

One reason why you would want max length 79 is because of working with
terminals.  Maybe ssh to you server and check how many spaces are consumed
by a tab?  In my boxes, it is usually 1 tab = 8 spaces.  So perhaps just
use that setting in your editor?

On Mon, Dec 8, 2014 at 10:15 AM, Aahan Krish <krish@aahan.me> wrote:

> My understanding from talking to different people is that many do use
> tabs (instead of spaces) for indentation in their code.
>
> My question is to them (because I want to use tabs too) is: how do you
> maintain a line-length of 79 characters?
>
> E.g. scenario: The tab setting in your editor could be 2 or 4, and in
> other developer's browser it could be 8. The code will be longer than
> 79 chars in the latter's editor.
>
> I want to know if it's at all possible or if you use some simple and
> realistic (practical) hacks.
>
> *PS: Please avoid, "That's why you should use spaces," type of
> comments. I would like to avoid flame wars.*
>
> TY,
> Aahan
> --
> https://mail.python.org/mailman/listinfo/python-list
>



-- 
Freelance Grails <http://grails.asia/> and Java <http://javadevnotes.com/>
 developer

Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces? jtan <admin@grails.asia> - 2014-12-08 10:25 +0800
  Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces? sohcahtoa82@gmail.com - 2014-12-08 12:20 -0800
    Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces? Ben Finney <ben+python@benfinney.id.au> - 2014-12-09 08:41 +1100
    Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces? Dave Angel <davea@davea.name> - 2014-12-08 17:57 -0500
    Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-12-08 20:17 -0500

csiph-web