Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!news.tele.dk!news.tele.dk!small.news.tele.dk!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '16,': 0.03; 'encoding': 0.05; 'say,': 0.05; 'utf-8': 0.07; 'okay': 0.09; 'strings.': 0.09; 'sucks': 0.09; 'character.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'sorts': 0.16; 'subject:3.3': 0.16; 'subject:python': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'steven': 0.31; 'text': 0.33; 'no,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'nov': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'default': 0.69; 'superb': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=DSBUueN594Qs4vyLObqXmJvzRdP7xoihKaFKiMPrU6E=; b=POh/bNuCdZSHS6xVBXyzBWT1h5a6ITg6Ue+YmAlVZjjt2sbiq4irNzCO1V7IV/7ni3 azIamSXYoGnYFYerSfcNNiVI6Kp2cT82GWgZwOTXzOguUIlWTZhFnxzouAxrmx7ULjZk K9aRIhtrGedrxzF9rgaNY6OYKhlEdfNkGFsxZdNAElL3ZlzE5EPS5RgKCLXqtTU1ySA4 /vj9T/4b57lmJR+TO9WD23jkAFcUoMLFP7/dOZwVkil1WSmV8PtMIWITOSQw75XbMkxD 59F4zg7kiLZwtChvds7PYmJnQc+tnlhTXKWgQXSzmXS9oCMYi5R1mVeWh5UYxsH7D+az 7pxw== MIME-Version: 1.0 X-Received: by 10.66.163.2 with SMTP id ye2mr8018016pab.170.1384536551922; Fri, 15 Nov 2013 09:29:11 -0800 (PST) In-Reply-To: <52865594$0$29975$c3e8da3$5496439d@news.astraweb.com> References: <52865594$0$29975$c3e8da3$5496439d@news.astraweb.com> Date: Sat, 16 Nov 2013 04:29:11 +1100 Subject: Re: python 3.3 repr 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.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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1384536561 news.xs4all.nl 15885 [2001:888:2000:d::a6]:50519 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:59552 On Sat, Nov 16, 2013 at 4:10 AM, Steven D'Aprano wrote: > No, UTF-8 is okay for writing to files, but it's not suitable for text > strings. Correction: It's _great_ for writing to files (and other fundamentally byte-oriented streams, like network connections). Does a superb job as the default encoding for all sorts of situations. But, as you say, it sucks if you want to find the Nth character. ChrisA