Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ben Finney Newsgroups: comp.lang.python Subject: Re: Continuing indentation Date: Sat, 05 Mar 2016 12:05:09 +1100 Lines: 39 Message-ID: References: <8760x4bo5h.fsf@elektro.pacujo.net> <871t7sbkex.fsf@elektro.pacujo.net> <87vb53se36.fsf@elektro.pacujo.net> <56d8d33d$0$1585$c3e8da3$5496439d@news.astraweb.com> <56D8DF99.6070808@lucidity.plus.com> <56d905a7$0$1605$c3e8da3$5496439d@news.astraweb.com> <56DA1ADF.2090109@lucidity.plus.com> <5d02aaa6-2f2d-4599-ba5e-0947383b6d82@email.android.com> <56DA2DDC.6050303@lucidity.plus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de fm/dqJeA1qZ9VMzjmtxCdAmBDe9m4f1pjtvqYrlNPl3Q== Cancel-Lock: sha1:5b+XQ0OixfQqMkMCCMxGJnnT1RA= Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'allowed.': 0.07; 'so?': 0.07; 'incorrect': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'suggest': 0.15; 'options.': 0.15; 'argument.': 0.16; 'conforming': 0.16; 'dismiss': 0.16; 'erik': 0.16; 'excludes': 0.16; 'guide.': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'weighed': 0.16; 'wrote:': 0.16; 'people,': 0.20; '(the': 0.22; 'saying': 0.22; 'code.': 0.23; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'header:X -Complaints-To:1': 0.26; 'small,': 0.27; 'consistency': 0.29; 'exclude': 0.29; "we're": 0.30; 'code': 0.30; 'certainly': 0.30; 'option': 0.31; 'options': 0.33; 'choices': 0.33; 'choosing': 0.33; 'rule': 0.33; 'something': 0.35; 'but': 0.36; 'should': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'expect': 0.37; 'received:org': 0.37; 'suggestion': 0.37; 'starting': 0.37; 'wrong': 0.38; 'means': 0.39; 'does': 0.39; 'enough': 0.39; 'rather': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'high': 0.60; 'matter': 0.63; 'more': 0.63; 'guides': 0.72; '_o__)': 0.84; 'compelling': 0.84; 'desires': 0.84; 'emotion': 0.84; 'received:125': 0.84; 'luxury': 0.93 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:104069 Erik writes: > On 05/03/16 00:23, Simon Ward wrote: > > Style guides are always going to be considered incorrect by some > > people, but they should aim more for consistency (the hobgoblin that > > may be), which is what makes code easier to grok. > > So you're saying that it doesn't matter if something is good or bad, > as long as it's consistently so? That's not my reading of the above. “X more than Y” does not dismiss the importance of Y. > Am I not allowed to suggest that the style guide is wrong in what it > suggests? Certainly you are allowed. You should not expect that suggestion to be compelling unless it is accompanied by *factual*, rather than emotive, argument. If the advantage is small, you need to accept that the small advantage will be weighed against the high cost of a long period of inconsistency with existing, currently-conformant, code. That may be enough to rule out the option you are suggesting, because we're not starting from a blank slate of no existing code. You also need to accept that many choices in a good style guide *will* be on the basis of choosing among many good options, and thereby exclude a number of good options from that guide. It doesn't make those options un-good, it just means that conforming to the style guide excludes those options. -- \ “For a sentimentalist is simply one who desires to have the | `\ luxury of an emotion without paying for it.” —Oscar Wilde, _De | _o__) Profundis_, 1897 | Ben Finney