Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeder.news-service.com!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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'string,': 0.05; '32-bit': 0.09; 'shortcut': 0.09; 'pm,': 0.10; 'wrote:': 0.14; 'defined': 0.14; 'angelico': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'non-printing': 0.16; 'numbers;': 0.16; 'planes': 0.16; 'header:In-Reply-To:1': 0.21; 'received:209.85.210.174': 0.23; 'received:mail-iy0-f174.google.com': 0.23; 'unlikely': 0.23; 'fri,': 0.23; "doesn't": 0.25; "i'm": 0.27; 'message- id:@mail.gmail.com': 0.28; 'subject:how': 0.29; 'unicode': 0.29; 'characters,': 0.30; "can't": 0.32; 'to:addr:python-list': 0.33; 'things': 0.33; 'chris': 0.34; 'however,': 0.34; 'characters': 0.34; 'there': 0.35; 'received:google.com': 0.37; 'received:209.85': 0.37; 'page': 0.37; 'subject:: ': 0.38; 'unless': 0.39; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'really': 0.40; '0-2': 0.84; 'printable': 0.84; 'ranges': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=cwNegaOxHLnaz26BrUkJMdiq4hshflRS2RITqRXzM9E=; b=GdFf8tvofFCeuVNMd307PO1NAEIWWmfCUdPLuxy0Ei5jUvOD+7pNxxyN60h63/CGa7 Xu2enk/B/I3eGpOYInE4CMcFraVuYR8czx3i3SHeG6cUbEPdvo0kxA4nS0JOWAIiBQT0 5GFv/zsZYsoMKbBRukcsRIP5J9+mz+yZD4yzY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=DC4JXDOZJw2pOPxslKC/jiq26LULEhwERzs/dhBrXQDRl+A5fgdibelQjSrvqargKm MOvjDzd65GoaiGG5JSnjKl6ThqJFEfaGz4L3cJzoOuPlFBDbdaDbfW+0iLdxJDVobYo7 TO3BZQG+g0tTTUwpF8VlufAsbv8dy4V/JWkYU= MIME-Version: 1.0 In-Reply-To: References: <9e861b0e-e768-401b-b5ca-190f20830a08@s9g2000yqm.googlegroups.com> <94ph22FrhvU5@mid.individual.net> Date: Fri, 3 Jun 2011 13:54:23 +1000 Subject: Re: how to avoid leading white spaces 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: 11 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1307073267 news.xs4all.nl 49184 [::ffff:82.94.164.166]:38476 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6909 On Fri, Jun 3, 2011 at 1:52 PM, Chris Angelico wrote: > However, Unicode planes 0-2 have all > the defined printable characters PS. I'm fully aware that there are ranges defined in page 14 / E. They're non-printing characters, and unlikely to be part of a text string, although it is possible. So you can't shortcut things and treat Unicode as 18-bit numbers; has to be 20-bit. Doesn't have to be 32-bit unless that's really convenient. Chris Angelico