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


Groups > comp.lang.python > #74160

Re: PEP8 and 4 spaces

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; '(at': 0.04; 'output': 0.05; 'diff': 0.07; 'extent': 0.07; 'cc:addr:python-list': 0.11; 'bytes).': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'simplest': 0.16; 'tabs': 0.16; 'tradition': 0.16; 'tty': 0.16; 'ignore': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'certainly': 0.24; 'interpret': 0.24; 'text.': 0.24; '(or': 0.24; 'cc:2**0': 0.24; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'rest': 0.29; 'character': 0.29; 'unix': 0.29; 'characters': 0.30; 'message-id:@mail.gmail.com': 0.30; 'gcc': 0.31; 'beginning': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'pm,': 0.38; 'even': 0.60; 'simply': 0.61; 'such': 0.63; 'jul': 0.74; 'treating': 0.84; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=i3fIMnc+s1hXSfC5gPXQkKMH+9O49W2jbhWejCIm89Q=; b=DcILX32SeUIPnZW+R60hWJbhR4Q9S2MYaOZ7FVQ+vMPrW5XE6qf8M9GzQsJx1E9ElH cVnTPgrQLC8JOLHKY79xNfvXQOCun4JgkqnZAV071r4Qb5L+HUrTps7a32WmloaaXKzz qmk2yuvNAm3Xb+p3zFItlXQhM298mdW3S0h3qxHnXg7fA/y24JueWYKlivpDtqRrOEtd JBTnHYb4uWGbQAu6vC+ceNCvSY/DwNcGkuF3pEOstHuvNH2tFdT5gmmlXeYQ7DkhB5Ci dWhRDLTTCkms34j+kuOMzTdJiAVwhKUnLZCbihTj5ryOODBmRO8B5MwcgGuR8jxsqCdE 7VzA==
MIME-Version 1.0
X-Received by 10.58.49.98 with SMTP id t2mr18053684ven.29.1404815301340; Tue, 08 Jul 2014 03:28:21 -0700 (PDT)
In-Reply-To <87a98kgqsm.fsf@elektro.pacujo.net>
References <53B59358.2040404@tobiah.org> <CAGGBd_rOg+EX1OxryW9-6+2b6yqzzKL9xN1K7+TPSP77tJz=bQ@mail.gmail.com> <mailman.11567.1404694875.18130.python-list@python.org> <lpdbjc$qf7$1@dont-email.me> <mailman.11614.1404782560.18130.python-list@python.org> <53bbb047$0$2926$c3e8da3$76491128@news.astraweb.com> <87a98kgqsm.fsf@elektro.pacujo.net>
Date Tue, 8 Jul 2014 20:28:21 +1000
Subject Re: PEP8 and 4 spaces
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <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.11620.1404815310.18130.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1404815310 news.xs4all.nl 2944 [2001:888:2000:d::a6]:52635
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:74160

Show key headers only | View raw


On Tue, Jul 8, 2014 at 7:09 PM, Marko Rauhamaa <marko@pacujo.net> wrote:
> The unix tradition is to let the TTY interpret the TABs. Utilities such
> as "ed", "cat", "diff" or "gcc" don't interpret or process TABs in any
> way but simply output them together with the rest of the text.

Not quite; tools like diff that put a character at the beginning of
the line are likely to be tab-aware, and gcc is certainly going to
comprehend them (at least to the extent of treating them as
whitespace). And I think less takes notice of them, too, so it's only
the very simplest tools like cat that actually ignore them or treat
them as single characters (or even bytes).

ChrisA

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


Thread

Re: PEP8 and 4 spaces Ben Finney <ben@benfinney.id.au> - 2014-07-07 11:00 +1000
  Re: PEP8 and 4 spaces Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-07-07 02:28 +0000
    Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-07 12:50 +1000
  Re: PEP8 and 4 spaces Dan Sommers <dan@tombstonezero.net> - 2014-07-07 05:35 +0000
    Re: PEP8 and 4 spaces Ben Finney <ben@benfinney.id.au> - 2014-07-08 11:22 +1000
      Re: PEP8 and 4 spaces wxjmfauth@gmail.com - 2014-07-08 00:03 -0700
      Re: PEP8 and 4 spaces Steven D'Aprano <steve@pearwood.info> - 2014-07-08 08:48 +0000
        Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-08 19:05 +1000
        Re: PEP8 and 4 spaces Marko Rauhamaa <marko@pacujo.net> - 2014-07-08 12:09 +0300
          Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-08 20:28 +1000
            Re: PEP8 and 4 spaces Marko Rauhamaa <marko@pacujo.net> - 2014-07-08 14:13 +0300
              Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-08 21:37 +1000
        Re: PEP8 and 4 spaces Ben Finney <ben@benfinney.id.au> - 2014-07-09 12:41 +1000
          Re: PEP8 and 4 spaces wxjmfauth@gmail.com - 2014-07-09 01:19 -0700

csiph-web