Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: cl@isbd.net Newsgroups: comp.lang.python Subject: Re: Continuing indentation Date: Fri, 4 Mar 2016 10:12:58 +0000 Lines: 38 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=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net UphBhiqM0VW30x6JNCJYdANKibvpR8klXmv/NB1Omxcx79dw0= X-Orig-Path: not-for-mail Cancel-Lock: sha1:SuuwaLnKEDEf1DgXdtD0UuuWDRw= User-Agent: tin/2.3.1-20141224 ("Tallant") (UNIX) (Linux/4.2.0-30-generic (x86_64)) Xref: csiph.com comp.lang.python:104020 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. -- Chris Green ยท