Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail 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; 'python': 0.08; 'lines:': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'shop.': 0.09; 'wrote:': 0.16; 'language,': 0.17; 'wed,': 0.17; 'programming': 0.20; 'skip:( 30': 0.24; 'aug': 0.24; 'code': 0.25; 'lines': 0.30; '"+"': 0.30; 'received:24': 0.32; 'there': 0.33; 'to:addr:python-list': 0.33; 'header:User-Agent:1': 0.34; 'header:X-Complaints-To:1': 0.35; 'read,': 0.36; 'two': 0.37; 'received:org': 0.38; 'steven': 0.38; 'some': 0.38; 'easier': 0.38; 'skip:o 20': 0.38; 'subject:: ': 0.39; 'header:Mime- Version:1': 0.39; 'to:addr:python.org': 0.39; 'might': 0.40; 'where': 0.40; 'subject:line': 0.73; 'cream': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dan Sommers Subject: Re: allow line break at operators Date: Wed, 10 Aug 2011 09:56:20 +0000 (UTC) References: <1312951356.77394.YahooMailNeo@web121518.mail.ne1.yahoo.com> <4e424208$0$29965$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: 24.100.92.194 User-Agent: Pan/0.133 (House of Butterflies) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1312970197 news.xs4all.nl 23982 [2001:888:2000:d::a6]:46112 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11106 On Wed, 10 Aug 2011 18:32:05 +1000, Steven D'Aprano wrote: > Python is a programming language, not an ice cream shop. +1 QOTW How about a cheese shop? In terms of easier to read, I find code easier to read when the operators are at the beginnings of the lines (PEP 8 notwithstanding): x = (someobject.somemethod(object3, thing) + longfunctionname(object2) + otherfunction(value1, value2, value3)) I can see the "+" signs a lot easier there than at the end of some line, where it might be buried between two longer lines: x = (someobject.somemethod(object3, thing) + longfunctionname(object2) + otherfunction(value1, value2, value3)) -- Dan