Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.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.106 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.80; '*S*': 0.01; 'instance,': 0.05; 'run- time': 0.05; 'subject:Anyone': 0.07; 'am,': 0.13; 'wrote:': 0.15; 'finney': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'literals': 0.16; 'newlines': 0.16; 'readability.': 0.16; 'simplicity.': 0.16; 'received:209.85.210.174': 0.19; 'received:mail- iy0-f174.google.com': 0.19; "doesn't": 0.22; 'header:In-Reply- To:1': 0.22; 'literal': 0.23; 'tue,': 0.23; 'writes:': 0.25; 'string': 0.26; 'message-id:@mail.gmail.com': 0.28; 'code,': 0.29; 'looks': 0.30; 'least': 0.31; 'subject:?': 0.31; 'lines': 0.31; 'source': 0.32; 'chris': 0.32; 'it.': 0.33; 'to:addr:python-list': 0.34; 'file': 0.36; 'opposed': 0.37; 'but': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'your': 0.60; 'order': 0.62; 'costs': 0.64; 'believe': 0.66; 'subject:program': 0.67; 'valuable': 0.67; 'works,': 0.68; 'subject:this': 0.74; 'gain': 0.79; 'lose': 0.82; '10:03': 0.84; 'flexibility,': 0.84; 'i18n': 0.84; 'paragraphs.': 0.84; 'readability': 0.84; 'ugly,': 0.84; 'hence,': 0.91; 'subject:want': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=tfOxzCRNeuVZFjs9EAbFLoUc8CRyD5gTimsv9YnbUiQ=; b=jVJvYdnW4mmZN4E5QXdKGb2/Mi+1KZm2bam1GNPvTOmiORW+CnrJaOaGvDsMykJg6f QI/nJ3ROjrFr2bYi5EQqIBKEckcIhbIVD1dWuMUKYuu2/ZQd3YXwvh3BPfiEPfB8lhua hsJYe1ut/dr1JWNIdMOriEmi/sz59OnDirG1g= MIME-Version: 1.0 In-Reply-To: <8762nhk2ze.fsf@benfinney.id.au> References: <4be432d4-5185-4101-9699-de5524c3fa57@x3g2000yqj.googlegroups.com> <5c3aba69-fddd-45ed-bf0c-8fa98df7aa73@r2g2000vbj.googlegroups.com> <75474208-0a8f-4ac1-8e26-18d8fe6b9efc@u26g2000vby.googlegroups.com> <8762nhk2ze.fsf@benfinney.id.au> Date: Tue, 5 Jul 2011 10:11:41 +1000 Subject: Re: Anyone want to critique this program? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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: 1309824703 news.xs4all.nl 21761 [2001:888:2000:d::a6]:54179 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:8806 On Tue, Jul 5, 2011 at 10:03 AM, Ben Finney wr= ote: > Chris Angelico writes: > >> In this instance, I believe the OP was paragraphing his text. > > What is =93paragraphing=94? If you look at the original code, you'll see embedded newlines used to create multiple paragraphs. Hence, paragraphing as opposed to simply wrapping in order to keep his source lines <80 chars. >> My personal inclination would be to simply back-tab it. It looks ugly, >> but at least it works, and doesn't require a run-time re-parse. > > Readability counts. Why is =93doesn't require a run-time re-parse=94 more > valuable than readability? Readability definitely counts. But having a string literal require an extra call to make it what you want also costs readability. It's like pushing your literals off to an i18n file - what you gain in flexibility, you lose in simplicity. ChrisA