Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82027
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <cameron@cskk.homeip.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'root': 0.05; 'subject:Python': 0.06; 'suppose': 0.07; 'we,': 0.07; 'screen.': 0.09; 'spaces': 0.09; "they've": 0.09; 'editor,': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'indent': 0.16; 'message- id:@cskk.homeip.net': 0.16; 'play.': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:cskk.homeip.net': 0.16; 'received:homeip.net': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'simpson': 0.16; 'spacing': 0.16; 'tab': 0.16; 'tabs': 0.16; 'do,': 0.16; 'wrote:': 0.18; 'load': 0.23; 'header:User-Agent:1': 0.23; "shouldn't": 0.24; 'cheers,': 0.24; 'looks': 0.24; "i've": 0.25; 'certain': 0.27; 'header:In-Reply-To:1': 0.27; 'thus': 0.29; 'code': 0.31; 'usually': 0.31; "d'aprano": 0.31; 'own,': 0.31; 'steven': 0.31; 'anyone': 0.31; 'file': 0.32; 'level.': 0.33; 'actual': 0.34; 'but': 0.35; 'received:com.au': 0.36; 'scheme': 0.36; 'vice': 0.36; "didn't": 0.36; 'charset:us-ascii': 0.36; 'subject:?': 0.36; 'too': 0.37; 'configured': 0.38; 'received:211': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'rather': 0.38; 'bad': 0.39; 'visual': 0.39; 'to:addr:python.org': 0.39; 'space': 0.40; 'how': 0.40; 'even': 0.60; 'new': 0.61; 'matter': 0.61; 'content-disposition:inline': 0.62; 'choose': 0.64; 'different': 0.65; 'subject: & ': 0.68; 'nuclear': 0.84; 'weapons': 0.84 |
| Date | Sat, 6 Dec 2014 10:47:45 +1100 |
| From | Cameron Simpson <cs@zip.com.au> |
| To | python-list@python.org |
| Subject | Re: Tabs for indentation & Spaces for alignment in Python 3? |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii; format=flowed |
| Content-Disposition | inline |
| In-Reply-To | <548231be$0$12986$c3e8da3$5496439d@news.astraweb.com> |
| User-Agent | Mutt/1.5.23 (2014-03-12) |
| References | <548231be$0$12986$c3e8da3$5496439d@news.astraweb.com> |
| X-Optus-CM-Score | 0 |
| X-Optus-CM-Analysis | v=2.1 cv=BdjhjNd2 c=1 sm=1 tr=0 a=YuQlxtEQCowy2cfE5kc7TA==:117 a=YuQlxtEQCowy2cfE5kc7TA==:17 a=ZtCCktOnAAAA:8 a=PO7r1zJSAAAA:8 a=J0QyKEt1u0cA:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=A92cGCtB03wA:10 a=kZ7UWmmPAAAA:8 a=ab7lldUO2_fhO0vxOMYA:9 a=CjuIK1q_8ugA:10 |
| 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.16643.1417825192.18130.python-list@python.org> (permalink) |
| Lines | 36 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1417825192 news.xs4all.nl 2947 [2001:888:2000:d::a6]:42778 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:82027 |
Show key headers only | View raw
On 06Dec2014 09:29, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: >Cameron Simpson wrote: >> I have spent too much time reading files indented >> with TABs by people using a different tabwidth to my own, and thus looking >> aweful on my screen. The original author didn't choose to make it awful, >> but their tabs rendered in my tab scheme look awful. And doubtless vice >> versa. The root cause of this is that when we, as humans, indent with >> tabs, we do it to achieve a certain visual effect; as though a certain >> number of spaces were in play. > >How is this different from people who achieve a certain visual effect by >indenting with actual spaces? > >I've seen people indent with 8 spaces. I've seen people indent with 2 >spaces. I've even seen people indent with a single space per level. I >haven't seen anyone indent with 17 spaces, but I suppose it's only a matter >of time... > >I don't see how reading code indented with tabs configured for 8/4/2/1 >spaces is *worse* than reading tab indented with 8/4/2/1 spaces. Because the author will have chosen a scheme not too insane. But when I pull up their indented-with-2-or-4-tab files in my tab==8 editor, it looks terrible. When I pull up their indented-with-spaces in whatever scheme, it looks as good or bad as their judgement, which even when tasteless is usually better than overwide tabs. I would rather not have to readjust my editor's tab spacing every time I load up a file from someone-who-is-not-me. If they use spaces, I don't have to. If they use tabs and do not indent like I do, I have to to keep things readable. Cheers, Cameron Simpson <cs@zip.com.au> They shouldn't get any new nuclear weapons until they've used the ones they've got. - Murff
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Tabs for indentation & Spaces for alignment in Python 3? Cameron Simpson <cs@zip.com.au> - 2014-12-06 07:37 +1100
Re: Tabs for indentation & Spaces for alignment in Python 3? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-06 09:29 +1100
Re: Tabs for indentation & Spaces for alignment in Python 3? Cameron Simpson <cs@zip.com.au> - 2014-12-06 10:47 +1100
csiph-web