Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed3a.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'advocate': 0.07; 'failing': 0.07; 'indexing': 0.07; 'subject: -- ': 0.07; 'utf-8': 0.07; 'string': 0.09; 'strings.': 0.09; '-tkc': 0.16; 'anyways,': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'iterating': 0.16; 'travis': 0.16; 'utf8': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'preferred': 0.22; 'bytes': 0.24; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'tim': 0.29; 'needed.': 0.30; 'streaming': 0.30; 'chase': 0.31; 'libraries': 0.31; 'subject:skip:i 10': 0.31; 'requirement': 0.35; 'format.': 0.36; 'charset:us-ascii': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; "you're": 0.61; 'real': 0.63; 'more': 0.64; '2014,': 0.84; 'etc),': 0.84; 'increasingly': 0.84; 'interchange': 0.84; 'received:50.22': 0.84 Date: Fri, 6 Jun 2014 21:20:22 -0500 From: Tim Chase To: python-list@python.org Subject: Re: Micro Python -- a lean and efficient implementation of Python 3 In-Reply-To: <61778024-C072-4635-9B88-F36431B6AA6E@gmail.com> 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> <61778024-C072-4635-9B88-F36431B6AA6E@gmail.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Get-Message-Sender-Via: boston.accountservergroup.com: authenticated_id: tim@thechases.com 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1402107662 news.xs4all.nl 2838 [2001:888:2000:d::a6]:37721 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72897 On 2014-06-06 09:59, Travis Griggs wrote: > 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. I definitely advocate UTF-8 for any streaming scenario, as you're iterating unidirectionally over the data anyways, so why use/transmit more bytes than needed. The only failing of UTF-8 that I've found in the real world(*) is when you have to requirement of constant-time indexing into strings. -tkc