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


Groups > comp.lang.python > #73995

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!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.014
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'configure': 0.05; 'advocate': 0.07; 'suppose': 0.07; 'lines.': 0.09; 'repeated': 0.09; 'adjacent': 0.16; 'fancy': 0.16; 'finds': 0.16; 'tab': 0.16; 'tabs': 0.16; 'elements': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'separate': 0.22; 'case.': 0.24; 'char': 0.24; 'space.': 0.24; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'horizontal': 0.31; 'vertical': 0.31; 'fri,': 0.33; 'could': 0.34; 'editor': 0.35; 'johnson': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'curious': 0.36; 'data,': 0.36; 'useful': 0.36; 'should': 0.36; 'level': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'rather': 0.38; 'little': 0.38; 'to:addr:python.org': 0.39; 'enough': 0.39; 'space': 0.40; 'blank': 0.60; 'offer': 0.62; 'benefit': 0.68; 'nobody': 0.68; 'jul': 0.74; 'rick': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=jFVJv2SJ0VQRbtHMTexSz5o3sMLR1w7skHI664IEOAU=; b=PI2j/y3Vl5UFReIhf+GZOpopD0Nk7x2AfMp34Vdz63c/hQ0MLGoeU2s8FydOsQNqxA LsTkSJR8gFQmodrwQATvhy65fNEusKqtUS5K0/JJ0gi1CN/BCZzEt319Bz5/HnKMxyVE 2Rneix0xqXxCYPN8TgiFikioVzLhu/6s4KaCMPC6eMvL6vcj4uIz6rWMz/38rmeJnRwO UD7Vo6BiEmlljwykDocMyuGL6zrh+cOYfwbzSULxZo7Tc4nGllsroxyzQSZqVcHdQPxk q2F6KQNdoBkaB0skcrJ+V/JxdzGECRBtK29GfiCvBpLfZT5WDhFrhG1oLcGNdz1lj19x GNdg==
X-Received by 10.70.138.102 with SMTP id qp6mr80510pdb.132.1404586671882; Sat, 05 Jul 2014 11:57:51 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <22220d8c-af69-434b-9361-520e396e615e@googlegroups.com>
References <mailman.11462.1404408676.18130.python-list@python.org> <22220d8c-af69-434b-9361-520e396e615e@googlegroups.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Sat, 5 Jul 2014 12:57:11 -0600
Subject Re: PEP8 and 4 spaces
To Python <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.11525.1404586681.18130.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1404586681 news.xs4all.nl 2916 [2001:888:2000:d::a6]:46679
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:73995

Show key headers only | View raw


On Fri, Jul 4, 2014 at 8:00 PM, Rick Johnson
<rantingrickjohnson@gmail.com> wrote:
> Strangly, I rather fancy the idea of using tabs in code,,,
> which allow each viewer to view the code in his or her level
> of indention,,, however, i cannot justify using a tab as a
> replacement for a space. Tabs should be used for "tabular"
> data (aka: speadsheets), and since code is NOT tabular data,
> we would be wise to use the space char for indention.

I find it a little curious that nobody ever seems to advocate the use
of vertical tabs instead of repeated newlines. It should offer the
same benefit as horizontal tabs, namely that one could then
independently configure one's editor to separate adjacent code
elements with the desired number of blank lines. But I suppose that
nobody finds that useful enough to bother with in the vertical case.

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


Thread

PEP8 and 4 spaces Tobiah <tshepard@rcsreg.com> - 2014-07-03 10:31 -0700
  Re: PEP8 and 4 spaces Roy Smith <roy@panix.com> - 2014-07-03 13:46 -0400
  Re: PEP8 and 4 spaces Grant Edwards <invalid@invalid.invalid> - 2014-07-03 19:02 +0000
    Re: PEP8 and 4 spaces Tim Chase <python.list@tim.thechases.com> - 2014-07-03 14:40 -0500
      Re: PEP8 and 4 spaces Tobiah <toby@tobiah.org> - 2014-07-03 14:23 -0700
        Re: PEP8 and 4 spaces Emile van Sebille <emile@fenx.com> - 2014-07-03 16:15 -0700
          Re: PEP8 and 4 spaces Grant Edwards <invalid@invalid.invalid> - 2014-07-04 14:28 +0000
            Re: PEP8 and 4 spaces Marko Rauhamaa <marko@pacujo.net> - 2014-07-04 17:54 +0300
              Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-05 00:58 +1000
              Re: PEP8 and 4 spaces Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-04 16:00 +0100
                Re: PEP8 and 4 spaces Marko Rauhamaa <marko@pacujo.net> - 2014-07-04 18:12 +0300
              Re: PEP8 and 4 spaces Simon Ward <simon+python@bleah.co.uk> - 2014-07-04 19:52 +0100
              Re: PEP8 and 4 spaces Michael Torrie <torriem@gmail.com> - 2014-07-05 16:03 -0600
              Re: PEP8 and 4 spaces Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-05 23:50 +0100
            Re: PEP8 and 4 spaces Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-04 15:57 +0100
            Re: PEP8 and 4 spaces Emile van Sebille <emile@fenx.com> - 2014-07-04 08:57 -0700
            Re: PEP8 and 4 spaces Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-04 17:06 +0100
              Re: PEP8 and 4 spaces Maciej Dziardziel <fiedzia@gmail.com> - 2014-07-04 09:19 -0700
                Re: PEP8 and 4 spaces Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-07-04 16:56 +0000
    Re: PEP8 and 4 spaces Tobiah <toby@tobiah.org> - 2014-07-03 14:28 -0700
  Re: PEP8 and 4 spaces Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-07-04 01:02 +0000
    Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-04 11:19 +1000
    Re: PEP8 and 4 spaces Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-07-04 18:35 +1200
      Re: PEP8 and 4 spaces wxjmfauth@gmail.com - 2014-07-04 01:47 -0700
        Re: PEP8 and 4 spaces Marko Rauhamaa <marko@pacujo.net> - 2014-07-04 12:21 +0300
          Re: PEP8 and 4 spaces wxjmfauth@gmail.com - 2014-07-04 03:10 -0700
      Re: PEP8 and 4 spaces Roy Smith <roy@panix.com> - 2014-07-04 09:47 -0400
        Re: PEP8 and 4 spaces Mihamina Rakotomandimby <mihamina.rakotomandimby@rktmb.org> - 2014-07-04 16:59 +0300
        Re: PEP8 and 4 spaces Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-04 16:12 +0100
        Re: PEP8 and 4 spaces George Silva <georger.silva@gmail.com> - 2014-07-04 12:14 -0300
          Re: PEP8 and 4 spaces Roy Smith <roy@panix.com> - 2014-07-04 12:31 -0400
            Re: PEP8 and 4 spaces George Silva <georger.silva@gmail.com> - 2014-07-04 13:37 -0300
        Re: PEP8 and 4 spaces Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-07-05 11:14 +1200
  Re: PEP8 and 4 spaces Rick Johnson <rantingrickjohnson@gmail.com> - 2014-07-04 19:00 -0700
    Re: PEP8 and 4 spaces Rick Johnson <rantingrickjohnson@gmail.com> - 2014-07-04 19:47 -0700
      Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-05 13:03 +1000
      Re: PEP8 and 4 spaces Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-07-05 20:57 +1200
        Re: PEP8 and 4 spaces alister <alister.nospam.ware@ntlworld.com> - 2014-07-05 09:48 +0000
      OT: Flashlights [was Re: PEP8 and 4 spaces] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-07-05 10:15 +0000
        Re: OT: Flashlights [was Re: PEP8 and 4 spaces] Rick Johnson <rantingrickjohnson@gmail.com> - 2014-07-06 08:41 -0700
          Re: OT: Flashlights [was Re: PEP8 and 4 spaces] Chris Angelico <rosuav@gmail.com> - 2014-07-07 08:25 +1000
    Re: PEP8 and 4 spaces Ian Kelly <ian.g.kelly@gmail.com> - 2014-07-05 12:57 -0600
      Re: PEP8 and 4 spaces Roy Smith <roy@panix.com> - 2014-07-05 15:07 -0400
    Re: PEP8 and 4 spaces Robert Kern <robert.kern@gmail.com> - 2014-07-05 21:07 +0100
    Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-06 09:27 +1000
      Re: PEP8 and 4 spaces Dan Sommers <dan@tombstonezero.net> - 2014-07-06 01:18 +0000
        Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-06 11:28 +1000

csiph-web