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


Groups > comp.lang.python > #82031

Re: Tabs for indentation & Spaces for alignment in Python 3?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1.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.022
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'example:': 0.03; 'subject:Python': 0.06; 'spaces': 0.09; 'url:github': 0.09; 'mangled': 0.16; 'tabs': 0.16; 'url:linux': 0.16; 'wrongly': 0.16; 'properly': 0.19; 'suggested': 0.26; 'message-id:@mail.gmail.com': 0.30; 'follows': 0.31; 'linux': 0.33; 'received:google.com': 0.35; 'up!': 0.36; 'subject:?': 0.36; 'thank': 0.38; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'subject: & ': 0.68; 'manner': 0.72; 'url:master': 0.84; 'technique': 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=rPA8+r9Uyht0GH9m3ySqYY/RKyPf/A/dt95nJDHWPlo=; b=hDs/SxbcwAhajiQp8basFgpHeFw7uWhu98+fpOUOwBtxdqHQfluObTDk2o1WUpJxib ikgpxlsjFoY+zpn9GLS1XVNOY17ZgDFmnEflMpP1XrUi8kjfJqDlj74hoV6GZvEQSl2w JDJhEAp/sHCx4TtyLdd4XoK3JfCWf/B8ZgGCs=
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=rPA8+r9Uyht0GH9m3ySqYY/RKyPf/A/dt95nJDHWPlo=; b=iQassoknfpDIF+uv8l+FLQhUdIwjWLtTEJaVGkkVtPc1ThktXSgQcDHbGW156Q1h2h JRmezm0SlEiQLHHt5BF9q9MFAXAfEHRVkdsqlizV2zr11ztoJ7nrkIMS8g5urPCeBgcV CNgjMO1UP8+T0/sizdWGZPxgI7dE+iuzsokXsbwYicLwCCReAEaebFXp/CqAe9ELA6hJ OHURLAY2q9gvgqTqlSzno43/z4UntNnoIqkoa2KIc5daaYAdEr+T9kvRxXrjQRqymD/o oMbgSMIpw1hx85LyVNvafeHmoFwG6USMTVcrM96KcN9R4vSFRVWvX4GN1+9EC1Ey9VPG T2SQ==
X-Gm-Message-State ALoCoQmP70hj6+iTXPZbODH5Q6rYBodIPOpBCDdVg0VQMN7rNJoRsW9QfQ8qg4ssovP8Q0zHWY5Z
MIME-Version 1.0
X-Received by 10.236.17.166 with SMTP id j26mr22319286yhj.8.1417830647462; Fri, 05 Dec 2014 17:50:47 -0800 (PST)
X-Originating-IP [106.51.201.105]
Date Sat, 6 Dec 2014 01:50:47 +0000
Subject Re: Tabs for indentation & Spaces for alignment in Python 3?
From Aahan Krish <krish@aahan.me>
To python-list@python.org
Content-Type multipart/alternative; boundary=047d7bfea07a1873ab0509826c75
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.16647.1417830651.18130.python-list@python.org> (permalink)
Lines 36
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1417830651 news.xs4all.nl 2834 [2001:888:2000:d::a6]:36107
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:82031

Show key headers only | View raw


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

Hello Ned,

I thought that the use of tabs and spaces in the manner I suggested is
pretty common. Linux Kernel follows the same technique, for example:
https://github.com/torvalds/linux/blob/master/kernel/async.c#L100

Of course, I understand the gist of what you are saying—if people don't
understand this technique properly and start mixing up tabs and spaces
interchangeably or wrongly the code'd get mangled pretty quickly.

Thank you for the heads up!


Best,
Aahan

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


Thread

Re: Tabs for indentation & Spaces for alignment in Python 3? Aahan Krish <krish@aahan.me> - 2014-12-06 01:50 +0000

csiph-web