Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.stack.nl!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.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'bits': 0.07; 'encoding.': 0.09; 'received:mail-lpp01m010-f46.google.com': 0.09; 'subject:string': 0.09; 'aug': 0.13; 'byte*': 0.16; 'int32': 0.16; 'subject:unicode': 0.16; 'ucs-4': 0.16; 'uint32': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'byte': 0.17; 'unicode': 0.17; '(in': 0.18; 'memory': 0.18; 'bit': 0.21; 'tried': 0.25; 'header:In-Reply- To:1': 0.25; 'used,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'idea,': 0.29; 'received:209.85.215.46': 0.30; 'point': 0.31; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'next': 0.35; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'decision': 0.60; 'range': 0.60; 'subject:, ': 0.61; 'subject:...': 0.63; 'limit': 0.65; 'fact,': 0.69; 'subject:, ...': 0.84; 'to:name:python': 0.84; 'truly,': 0.84; 'technically': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=6Yrp+M/7he1SG/z+qaxWcf8Fbk57TuSYl4+e1T0NLOw=; b=T5xs1v1tyaueo13Tfy0ZHiT9bJQeSorjt7qZVO77oNBxDIE7T5QRzjzsHoLJT6pZIJ 3jrZqtyv7va7wD1yrB4YQ2eNy8LHIjB6VGJ0rnykGNfrgdjFhBraoLLiUKAje0rIpMMe iTk0asq+UG58xA9+IhEdTczhqKxRDpwYciAtSHKFeBwLGxFDoQUTewrw37iVkUy8Mf9E WAVpYe7YepfC5Q4jrEeqwe9dSNct7z5JAg1PBK5x2tTb3amA0k44aZcBAM102yohJsf5 WROademZmcApZPkiXxaKbYtPqNfgZ4nF0Ats23dGiVCdX5CqAO/GbxSz/wLaHlAz5/iL 5BPA== MIME-Version: 1.0 In-Reply-To: <2e92da71-fbd2-467f-9088-1c79fa7bcf69@googlegroups.com> References: <1cb3f062-eb45-4b0c-977b-76afb099923c@googlegroups.com> <503a0d51$0$6574$c3e8da3$5496439d@news.astraweb.com> <503a8361$0$6574$c3e8da3$5496439d@news.astraweb.com> <2e92da71-fbd2-467f-9088-1c79fa7bcf69@googlegroups.com> From: Ian Kelly Date: Mon, 27 Aug 2012 14:14:07 -0600 Subject: Re: Flexible string representation, unicode, typography, ... To: Python 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: 2001:888:2000:d::a6 X-Trace: 1346098483 news.xs4all.nl 6860 [2001:888:2000:d::a6]:47756 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:27998 On Mon, Aug 27, 2012 at 1:16 PM, wrote: > - Why int32 and not uint32? No idea, I tried to find an > answer without asking. UCS-4 is technically only a 31-bit encoding. The sign bit is not used, so the choice of int32 vs. uint32 is inconsequential. (In fact, since they made the decision to limit Unicode to the range 0 - 0x0010FFFF, one might even point out that the *entire high-order byte* as well as 3 bits of the next byte are irrelevant. Truly, UTF-32 is not designed for memory efficiency.)