Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.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; 'plenty': 0.03; 'subject:Python': 0.05; 'agree,': 0.07; 'readable': 0.09; 'url:peps': 0.09; 'finney': 0.16; 'received:209.85.161.174': 0.16; 'received:mail-gx0-f174.google.com': 0.16; 'span': 0.16; 'url:pep-0008': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; 'cc:no real name:2**0': 0.21; 'header:In-Reply-To:1': 0.22; 'indentation': 0.23; 'moreover,': 0.23; 'pep': 0.23; 'url:dev': 0.23; 'worst': 0.23; 'writes:': 0.25; 'cc:2**0': 0.26; 'stuff': 0.26; 'message-id:@mail.gmail.com': 0.29; 'anyway.': 0.29; 'cc:addr:python.org': 0.29; 'lines': 0.30; 'updated': 0.33; 'received:209.85.161': 0.34; 'url:python': 0.35; 'received:google.com': 0.37; 'received:209.85': 0.38; 'think': 0.38; 'url:org': 0.39; 'goes': 0.39; 'received:209': 0.39; 'more': 0.61; 'march': 0.61; 'glad': 0.68; 'distinguish': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=TSGN9sdi8XTi/jKTuf9E55iejh1eiXuHSPDf/cgGTJU=; b=mNSMwtJV5xsosyL9qqwo4jgIkf6NxXHUm3bOq5i/QJZ2AZDkPczv8jkEZb+EcZBnju h2NYhJTdPX0Xw2fg8E+XGsryng00PbQVSrko2s60Z/Ao1CA20VzZzzA0LLzrUyuDDlTD 05Pnswdxmyowf4Wdi6CJqpVAIxC1C7amlOdAvz9RfLVDCnY/q5fHmNjF740f57I+3Ie0 p4IaIgelfZ2GGN2FpuhX/U4g1FbcUsRHZ7Z4quuvy/D8AUbukRK60EdM31EBU+u9dKjr HsVHuxp+Ij6C3AAv6Kss+WinEUlsCTBJQYXq5PShFFTJxSMgqtLei5t7j0uLw+IxBo0u hLcQ== MIME-Version: 1.0 In-Reply-To: <873999pk52.fsf@benfinney.id.au> References: <4f612b19$0$1379$4fafbaef@reader2.news.tin.it> <8e72d74f-c844-4de3-8a37-f6b1fdc2291f@y27g2000yqy.googlegroups.com> <50e9ceec-40f1-4ead-b2b6-87328b30d084@ow8g2000pbc.googlegroups.com> <4f61c828$0$1390$4fafbaef@reader2.news.tin.it> <4f61d728$0$1375$4fafbaef@reader2.news.tin.it> <4f61fa8a$0$1381$4fafbaef@reader2.news.tin.it> <4f6202cb$0$1377$4fafbaef@reader2.news.tin.it> <4f6245c5$0$1384$4fafbaef@reader2.news.tin.it> <873999pk52.fsf@benfinney.id.au> Date: Thu, 15 Mar 2012 23:00:23 +0000 Subject: Re: Python is readable From: Arnaud Delobelle To: Ben Finney Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1331852426 news.xs4all.nl 6951 [2001:888:2000:d::a6]:56111 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21720 On 15 March 2012 22:35, Ben Finney wrote: > Kiuhnm writes: > >> Moreover, I think that >> =C2=A0 if (............ >> =C2=A0 =C2=A0 =C2=A0 ............ >> =C2=A0 =C2=A0 =C2=A0 ............): >> =C2=A0 =C2=A0 =C2=A0 ............ >> =C2=A0 =C2=A0 =C2=A0 ............ >> =C2=A0 =C2=A0 =C2=A0 ............ >> is not very readable anyway. > > I agree, and am glad PEP 8 has been updated to recommend an extra level > of indentation for continuation, to distinguish from the new block that > follows . Personally I solve this by never writing if conditions that span more than one line. If the worst comes to the worst, I would write: aptly_named_condition =3D ( very long condition that goes over plenty of lines ) if aptly_named_condition: do stuff --=20 Arnaud