Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.049 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.01; 'receives': 0.04; 'subject:Python': 0.06; 'odd': 0.07; 'subject: -- ': 0.07; 'utf-8': 0.07; 'string': 0.09; 'linear': 0.09; 'endian': 0.16; 'reserves': 0.16; 'utf8': 0.16; 'wrote:': 0.18; 'app': 0.19; 'seems': 0.21; 'preferred': 0.22; 'sends': 0.24; 'header:In-Reply- To:1': 0.27; 'external': 0.29; 'am,': 0.29; 'character': 0.29; 'tim': 0.29; 'streaming': 0.30; 'chase': 0.31; 'libraries': 0.31; 'subject:skip:i 10': 0.31; '(e.g.': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'format.': 0.36; 'library.': 0.36; 'doing': 0.36; 'message-id:@gmail.com': 0.38; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'issues,': 0.61; 'address': 0.63; 'header:Message-Id:1': 0.63; 'charset:windows-1252': 0.65; 'benefit': 0.68; 'gain': 0.79; 'hand': 0.80; '2014,': 0.84; 'etc),': 0.84; 'increasingly': 0.84; 'interchange': 0.84; 'it\x92s': 0.84; 'prone': 0.91; 'thing,': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=AYLfcmCingwbGJTmsok1wfNm0jo2g4TTLYHDFDMQPbY=; b=O3EEMjiHhXDxN2pUplVMDddrwMXn/UmtuFkqcG613z1LiLwDFyzjmCWr8U1s98e7uA XiHXGvybBaoe0K7jqKEGFzgTB/kJ3jkAOnJ+Si6fp9mtdc7TH8QST7pCmpGFgfr++d5b 615L3jxvqTDOGtZKs0KqO+mukUcWkUWTgbw2YwRCBahF2J01B0JmdioOLll763c4zPTU dvMAIBDo1KF+leDyyvDLbd8PbQ6XLwRyeGvc1IbhZxV/Sg2BzUTCVVA2Z//Vqdt4iuwp NmztsU6fRfH0SgdLsZjG5vjoyIv+5Z+4jgB8fYUlW3y4GahbMa28Foad7C9U0HD0qG+i MRFA== X-Received: by 10.68.178.194 with SMTP id da2mr2685772pbc.151.1402073947816; Fri, 06 Jun 2014 09:59:07 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: Micro Python -- a lean and efficient implementation of Python 3 From: Travis Griggs In-Reply-To: <20140604060152.2cdf8198@bigbox.christie.dr> Date: Fri, 6 Jun 2014 09:59:04 -0700 Content-Transfer-Encoding: quoted-printable References: <20140603194949.3147497d@x34f> <44acd692-5dcd-4e5f-8238-7fbe0de4db2a@googlegroups.com> <538ecdef$0$11109$c3e8da3@news.astraweb.com> <7xoay9w1h0.fsf@ruckus.brouhaha.com> <20140604060152.2cdf8198@bigbox.christie.dr> To: python-list@python.org X-Mailer: Apple Mail (2.1878.2) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1402073958 news.xs4all.nl 2977 [2001:888:2000:d::a6]:47504 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72861 On Jun 4, 2014, at 4:01 AM, Tim Chase = wrote: > If you use UTF-8 for everything It seems to me, that increasingly other libraries (C, etc), use utf8 as = the preferred string interchange format. It=92s universal, not prone to = endian issues, etc. So one *advantage* you gain for using utf8 = internally, is any time you need to hand a string to an external thing, = it=92s just ready. An app that reserves its internal string processing = to streaming based ones but has to to hand strings to external libraries = a lot (e.g. cairo) might actually benefit using utf8 internally, because = a) it=92s not doing the linear search for the odd character address and = b) it no longer needs to decode/encode every time it sends or receives a = string to an external library.