Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '"""': 0.07; 'subject:PEP': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:question': 0.10; 'def': 0.12; '...,': 0.16; 'arg2,': 0.16; 'better:': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.18; 'header:User- Agent:1': 0.23; 'mon,': 0.24; 'least': 0.26; 'header:X-Complaints- To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; '+0100,': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'class': 0.32; 'to:addr :python-list': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'even': 0.60; 'jul': 0.74; 'self.value': 0.84; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dave Angel Subject: Re: A small question about PEP 8 Date: Mon, 08 Jul 2013 08:33:17 -0400 References: <51daaa51$0$9505$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 174.32.174.33 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 In-Reply-To: <51daaa51$0$9505$c3e8da3$5496439d@news.astraweb.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 45 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373286831 news.xs4all.nl 15969 [2001:888:2000:d::a6]:58633 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50150 On 07/08/2013 08:02 AM, Steven D'Aprano wrote: > On Mon, 08 Jul 2013 11:39:21 +0100, Joshua Landau wrote: > > >> Or you can (be sane) and put it at no indentation: >> >> """ >> a_wonderful_set_of_things = { >> ..., >> not_missing_an_end_brace >> } >> """ > > I consider that the least aesthetically pleasing, and also rather awkward: > > > some_result = some_function( > arg1, arg2, arg3, arg4, > [item1, item2, item3, item4, > item5, item6, item7, > item8, item9, item10, > ], > arg6, key=spam, word=eggs, > extras=None, foo=bar, > ) or even better: class MyClass: def my_method(self): if self.flag: self.value.append( arg1, arg2, arg3 ) return self.value -- DaveA