Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Mark Lawrence Newsgroups: comp.lang.python Subject: Re: Continuing indentation Date: Fri, 4 Mar 2016 21:20:47 +0000 Lines: 60 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> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de LtYNslAhk/vRmuCZZmPJbAMAhPRrBFBNJ9j017gYbUJw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'operator': 0.03; 'binary': 0.05; 'from:addr:yahoo.co.uk': 0.05; 'friday,': 0.07; 'logic': 0.09; 'operator,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'reports.': 0.09; 'splitting': 0.09; 'wrong,': 0.09; ':-)': 0.12; '2016': 0.16; 'agree.': 0.16; 'pep8': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'suggestion.': 0.16; 'why,': 0.16; 'wrote:': 0.16; "wouldn't": 0.16; 'language': 0.19; '>>>': 0.20; 'preferred': 0.20; 'lawrence': 0.22; 'seems': 0.23; 'split': 0.23; 'header:In-Reply- To:1': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints- To:1': 0.26; 'earlier': 0.27; 'fri,': 0.27; 'tend': 0.27; 'correct': 0.28; 'fighting': 0.29; 'pep': 0.29; 'language.': 0.32; "d'aprano": 0.33; 'steven': 0.33; 'could': 0.35; 'reports,': 0.35; 'something': 0.35; 'according': 0.36; 'too': 0.36; 'there': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'agree': 0.37; 'say': 0.37; 'received:org': 0.37; 'guys': 0.38; 'wrong': 0.38; 'end': 0.39; 'to:addr:python.org': 0.40; 'mark': 0.40; 'email addr:gmail.com': 0.62; 'here.': 0.62; 'charset:windows-1252': 0.62; 'more': 0.63; 'latest': 0.64; 'our': 0.64; 'march': 0.64; 'mar': 0.65; 'believe': 0.66; '>>>>>': 0.66; 'truth': 0.79; 'aaa': 0.84; 'pythonistas,': 0.84; 'yyy': 0.97 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: 80.234.129.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: 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:104055 On 04/03/2016 21:14, sohcahtoa82@gmail.com wrote: > On Friday, March 4, 2016 at 6:03:48 AM UTC-8, alister wrote: >> On Fri, 04 Mar 2016 10:12:58 +0000, cl wrote: >> >>> Steven D'Aprano wrote: >>>> On Fri, 4 Mar 2016 12:23 pm, INADA Naoki wrote: >>>> >>>> >>>>>> >>>>>> Indeed. I don't understand why, when splitting a condition such as >>>>>> this, >>>>>> people tend to put the operator at the end of each line. >>>>>> >>>>>> >>>>> Because PEP8 says: >>>>> >>>>>> The preferred place to break around a binary operator is after the >>>>> operator, not before it. http://pep8.org/#maximum-line-length >>>> >>>> PEP 8 is wrong :-) >>>> >>> Yes, I agree. In my mind the logic is:- >>> >>> IF xxx >>> AND yyy AND zzz OR aaa >>> THEN do something >>> >>> The PEP8 correct(er):- >>> >>> IF xxx AND >>> yyy AND zzz OR aaa >>> THEN do something >>> >>> ... just seems all wrong and difficult to understand. >> >> not at all >> the split after the operator shows that their is more to that line >> splitting before & the reader could believe that the condition ends there >> >> PEP 8 is mos definitely correct on this one >> >> >> >> -- >> According to all the latest reports, there was no truth in any of the >> earlier reports. > > I wouldn't call PEP 8 "correct". I would say that you just simply agree with PEP 8's suggestion. > > You guys are spending way too much time fighting over something that is clearly subjective. Nobody is "correct" here. There's no right and wrong, just simple preference. > +1 -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence