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


Groups > comp.lang.python > #73933

Re: PEP8 and 4 spaces

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.016
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'configure': 0.05; 'funny,': 0.09; 'spaces': 0.09; 'things,': 0.09; 'cc:addr:python- list': 0.11; 'caring': 0.16; 'competent': 0.16; 'editor,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'happy,': 0.16; 'programmer,': 0.16; 'rough': 0.16; 'utterly': 0.16; 'wrote:': 0.18; 'basically': 0.19; 'code,': 0.22; 'separate': 0.22; 'cc:addr:python.org': 0.22; "aren't": 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'right.': 0.26; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'message- id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'steven': 0.31; 'up:': 0.31; 'stuff': 0.32; 'fri,': 0.33; 'style': 0.33; "i'd": 0.34; 'point.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'surely': 0.36; 'possible': 0.36; 'planning': 0.38; 'expect': 0.39; 'bad': 0.39; 'either': 0.39; 'how': 0.40; "you're": 0.61; 'back': 0.62; 'valuable': 0.63; 'account': 0.65; 'lose': 0.68; 'jul': 0.74; 'guides.': 0.84; 'beings': 0.91; 'to:none': 0.92; 'differences': 0.93
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=hRHJoe3nV2NRkgfYb7+90qHTetooSCv+ZVh7WDwVAqI=; b=erP/Ry7mwtcahMqVf9a5UDDGi6NOgWXTApuPPPuRyFu0e27SRzYY+erPXfeKbVlqr1 EfOfPcg33e1b/r4NzmqOi0GNRuw7niEnwsFP62cGtkl0EIW5mDy27zYTGQ+0INDnhSn3 ika49UbWdAWFdYOVrj48agb8gyPpJqWJv3czR5c3AvVmfzl71GE5NY75DfYv9nd4KBeq FWwkNpIwhC1vMAehH3fjkghabgpYekkLn64+i8kdGOCUffSzp2dCgjcxmBB7oJEONOUa yAyAxLN9g3ODzTKEhyfXWwxOYQ8RQAQbHCa6NIIVCqi1UlcVJeqaE44BktFU1uGpmpQg R8lQ==
MIME-Version 1.0
X-Received by 10.221.9.72 with SMTP id ov8mr6873274vcb.27.1404437412415; Thu, 03 Jul 2014 18:30:12 -0700 (PDT)
In-Reply-To <53b6019f$0$29985$c3e8da3$5496439d@news.astraweb.com>
References <53B59358.2040404@tobiah.org> <CAPTjJmqv_-89sV+X3VX03yAEXT43RgfBbcYL0W3GOLRCWGwYjQ@mail.gmail.com> <mailman.11466.1404410853.18130.python-list@python.org> <53b6019f$0$29985$c3e8da3$5496439d@news.astraweb.com>
Date Fri, 4 Jul 2014 11:30:12 +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.11478.1404437416.18130.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1404437416 news.xs4all.nl 2943 [2001:888:2000:d::a6]:33158
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:73933

Show key headers only | View raw


On Fri, Jul 4, 2014 at 11:21 AM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
>> Summing up: if you care about other human beings, use spaces. If you
>> don't care about other human beings, you may use tabs, but other human
>> beings surely will take how you treat them into account ;-).
>
> Ha ha, that's funny, I would have said the opposite: if you care about
> keeping tools that expect spaces happy, use spaces, if you care about
> allowing people to configure the look of your code, or poor unfortunates
> who aren't using a programmer's editor, use tabs.

Right. And hey. If you're a sufficiently competent programmer, you CAN
get away with not caring about other human beings: either because
you're so utterly valuable that people accept you despite your rough
edges... or because you just script away the differences :)

Now, if your *boss* doesn't understand about these things, it's
possible to lose your job over stupid stuff like style guides.
Although to be fair, I'd been planning to quit for a long time, and
the style guide was the last in a long line of problems, so when I
kicked back and said basically "No, your style guide is a bad idea",
it ended up with us parting ways. But that's a separate point.

ChrisA

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


Thread

Re: PEP8 and 4 spaces Paul Sokolovsky <pmiscml@gmail.com> - 2014-07-03 21:07 +0300
  Re: PEP8 and 4 spaces wxjmfauth@gmail.com - 2014-07-03 12:22 -0700
  Re: PEP8 and 4 spaces Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-07-04 01:21 +0000
    Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-04 11:30 +1000
      Re: PEP8 and 4 spaces Roy Smith <roy@panix.com> - 2014-07-03 21:37 -0400
    Re: PEP8 and 4 spaces Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-07-04 18:55 +1200
      Re: PEP8 and 4 spaces Lie Ryan <lie.1296@gmail.com> - 2014-07-04 19:29 +0100
        Re: PEP8 and 4 spaces Roy Smith <roy@panix.com> - 2014-07-04 15:04 -0400
          Re: PEP8 and 4 spaces Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-04 20:50 +0100
        Re: PEP8 and 4 spaces Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-07-05 11:17 +1200
          Re: PEP8 and 4 spaces Tim Chase <python.list@tim.thechases.com> - 2014-07-04 18:35 -0500
      Re: PEP8 and 4 spaces Travis Griggs <travisgriggs@gmail.com> - 2014-07-05 00:51 -0700

csiph-web