Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bob Martin Newsgroups: comp.lang.python Subject: Re: Guido sees the light: PEP 8 updated Date: Sat, 16 Apr 2016 08:05:34 BST Lines: 35 Message-ID: References: <5711c1b3$0$1596$c3e8da3$5496439d@news.astraweb.com> X-Trace: individual.net OZmjdeB6YLeG/UPsCpvnXAWkDBbhKatBupxA4c6V6QXqyIYtQQ X-Orig-Path: BERLIN : news.individual.net Cancel-Lock: sha1:LtVbfzIB6sb1X2hTLMjpgnRA6eg= Xref: csiph.com comp.lang.python:107083 in 758117 20160416 053809 Steven D'Aprano wrote: >Until now, PEP 8 has recommended that multi-line expressions should break >*after* infix operators: > > >result = (this_value * >some_value + >another_value - >excess_value or >default_value >) > > >After a mercifully short discussion on the Python-Ideas mailing list, Guido >has been persuaded to change PEP 8 to recommend that the break should occur >*before* the infix operator: > > >result = (this_value >* some_value >+ another_value >- excess_value >or default_value >) > > >This makes me happy :-) That's how I've always done it. > > >Guido's announcement, including links to relevant discussion: > >https://mail.python.org/pipermail/python-dev/2016-April/144205.html