Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!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.036 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'wrong,': 0.09; 'received:209.85.210.174': 0.13; 'received:mail- iy0-f174.google.com': 0.13; '"right"': 0.16; '10:59': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'dec': 0.22; '(or': 0.22; 'header:In-Reply-To:1': 0.22; 'code': 0.25; 'message-id:@mail.gmail.com': 0.28; 'pm,': 0.29; 'pattern': 0.30; 'whitespace': 0.30; 'break': 0.32; 'tue,': 0.32; 'to:addr:python-list': 0.34; 'probably': 0.34; 'anything': 0.34; 'beginning': 0.36; 'question': 0.36; 'received:google.com': 0.37; 'some': 0.38; 'received:209.85': 0.38; 'clearly': 0.39; "it's": 0.40; 'received:209': 0.40; 'to:addr:python.org': 0.40; '2011': 0.61; 'simple,': 0.64; 'andrea': 0.84 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; bh=8MbTbvWnuIRfbj8vDwzWZmiHZWug/McD7Oa+ceP/kHw=; b=MiKJjwKme8PpMW5b+a9Nps7UNFu4C6b66q/6lu9BbdDg4wvLo1YFw3tvxSpX/+uO+w 8qm8weNnwoaNvM8nNeR2XCuWVL5S+cdoFkP23Agpp8fZEmc8Iahq0wrJxLt1vf8I2HOe zgP/hPE0ZQBpiX5tPHqK67mYx4K0A67hsXPY8= MIME-Version: 1.0 In-Reply-To: <4EDE03BD.2030106@gmail.com> References: <4EDDFC48.2000903@gmail.com> <4EDE0166.1030006@gmail.com> <4EDE03BD.2030106@gmail.com> Date: Tue, 6 Dec 2011 23:06:55 +1100 Subject: Re: whitespace cleanup From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1323173218 news.xs4all.nl 6959 [2001:888:2000:d::a6]:55931 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:16721 On Tue, Dec 6, 2011 at 10:59 PM, Andrea Crotti wrote: > Well it's not so simple, I clearly don't want to strip out whitespace in the > beginning of the line, > or my nice code will break miserably ;) The question is: What is "wrong" whitespace? Whatever you declare to be wrong, you can probably come up with a regexp or other spec that will catch it (or conversely, declare some pattern to be "right" and look for anything else). ChrisA