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


Groups > comp.lang.python > #82092

Maintaining Maximum Line Length When Using Tabs Instead of Spaces?

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <krish@aahan.me>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.182
X-Spam-Level *
X-Spam-Evidence '*H*': 0.66; '*S*': 0.02; '(instead': 0.09; 'editor.': 0.09; 'subject:Line': 0.16; 'tab': 0.16; 'tabs': 0.16; 'code.': 0.18; 'question': 0.24; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'indentation': 0.31; 'could': 0.34; 'editor': 0.35; 'received:google.com': 0.35; 'possible': 0.36; 'subject:?': 0.36; 'should': 0.36; 'e.g.': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'skip:u 10': 0.60; 'browser': 0.61; 'simple': 0.61; 'different': 0.65; 'talking': 0.65; 'flame': 0.84; 'subject:Using': 0.84; 'realistic': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=aahan.me; s=aahan-me; h=mime-version:date:message-id:subject:from:to:content-type; bh=T7RvWXvWnDA0qa9YK/QIYTkAXuB6uHJYecoqU/AQyEc=; b=SpFyKbnGppe4eP2BAH+bp25BC2s19Ize3zYcQaEYAR7gNsMnNxcJTjn3+zEGgL43AJ E+qpwGMm65G/etdfHyh/f9uiHmIp+drIxT9Ph62dWT0vYLjil8qru8xqofuO120WrBCE fE4fUkO0rDQkhY6wHnjsPnQsud8k23NkaNlTU=
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=T7RvWXvWnDA0qa9YK/QIYTkAXuB6uHJYecoqU/AQyEc=; b=j1lWGEgr3HEkGfy7J6Ri6PK8kdxY55wDZU1FACxDwjMKm90Ut3NXXHSSy1WySiY0/a D86Hv6aW33wSW6TtdfUskv242vErIJES+wjb9ivX8Enw58uh61JYR5cZObeGTDbK8TD2 E8KfLyOcLcC2O9Wf3kSKDvg8BQganfdl0jCiYpp7b8TtUD5S9wXydzjdq22S5I+QmkMJ qnlThkJrnQBaNG+Ft46fMcRj+z49srz2qHspKP3wB4x94UahvuEJLnEsw/enkEg8c/GI c73RXYS+Tih9IBpL66AMNKFPZuwtZnWpyPv8qqoAZ+10R2mwkdgK4lWKc4NWftjBIMHj 38jw==
X-Gm-Message-State ALoCoQngJB5rCXb3SusKbf8TRBGS2Gpfv/RXJlsrPOMf+2y+WC7oQWv0j0XadZaRpz9o7yNPKbGk
MIME-Version 1.0
X-Received by 10.236.0.137 with SMTP id 9mr28106695yhb.146.1418004943224; Sun, 07 Dec 2014 18:15:43 -0800 (PST)
X-Originating-IP [106.51.198.53]
Date Mon, 8 Dec 2014 02:15:43 +0000
Subject Maintaining Maximum Line Length When Using Tabs Instead of Spaces?
From Aahan Krish <krish@aahan.me>
To python-list@python.org
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.16695.1418004945.18130.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1418004945 news.xs4all.nl 2843 [2001:888:2000:d::a6]:46169
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:82092

Show key headers only | View raw


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

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


Thread

Maintaining Maximum Line Length When Using Tabs Instead of Spaces? Aahan Krish <krish@aahan.me> - 2014-12-08 02:15 +0000

csiph-web