Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Erik Newsgroups: comp.lang.python Subject: Re: Continuing indentation Date: Sat, 5 Mar 2016 00:52:44 +0000 Lines: 17 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de vR+dAsFFB23FmsUbrG2QQgMYMpM+Z8IRr340xoTLr+6Q== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'defines': 0.07; 'so?': 0.07; 'incorrect': 0.09; 'recommends': 0.09; 'suggest': 0.15; 'agree.': 0.16; 'from:addr:python': 0.16; 'lhs': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'language': 0.19; 'people,': 0.20; 'suggested': 0.20; '(the': 0.22; 'saying': 0.22; 'defined': 0.23; 'header:In-Reply-To:1': 0.24; 'feature': 0.24; 'header:User-Agent:1': 0.26; "doesn't": 0.26; '(which': 0.26; 'to:no real name:2**1': 0.27; 'consistency': 0.29; 'indentation': 0.29; 'pep': 0.29; 'code': 0.30; 'structure': 0.34; 'that,': 0.34; 'something': 0.35; 'but': 0.36; 'should': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'wrong': 0.38; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'matter': 0.63; 'more': 0.63; 'strictly': 0.64; 'here': 0.66; 'guides': 0.72 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=Rr04V3SK c=1 sm=1 tr=0 a=X2VfThTz+8HMaRSzjuZh7Q==:117 a=X2VfThTz+8HMaRSzjuZh7Q==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=IkcTkHD0fZMA:10 a=YnYwbFL1LmFjquw1Xw0A:9 a=QEXdDO2ut3YA:10 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: <5d02aaa6-2f2d-4599-ba5e-0947383b6d82@email.android.com> 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:104067 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? I don't agree. Am I not allowed to suggest that the style guide is wrong in what it suggests? FWIW, my issue here is that the language defines that the structure of the code is strictly defined by the indentation on the LHS (which is a feature I like). This PEP recommends that the structure of the condition should be determined by the keywords appearing on the RHS. That, to me, is inconsistency. I would prefer it if the PEP suggested that the LHS is significant in this case also. E.