Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'encoding': 0.05; 'subject:Python': 0.06; 'binary': 0.07; 'handful': 0.09; 'structure,': 0.09; 'vast': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'encodings': 0.16; 'encodings,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'limiting.': 0.16; 'files.': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'bit': 0.19; 'cc:addr:python.org': 0.22; 'text,': 0.24; 'unicode': 0.24; 'file.': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'argue': 0.31; 'default,': 0.31; 'minor': 0.31; 'subject:some': 0.31; 'file': 0.32; 'text': 0.33; 'open': 0.33; 'could': 0.34; 'common': 0.35; 'point.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'should': 0.36; 'rather': 0.38; 'easy': 0.60; 'course': 0.61; 'such': 0.63; 'zip': 0.64; 'relatively': 0.65; 'to:none': 0.92 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:cc :content-type; bh=6euHaS0c80h+/+JbizUQX7rpr5c1KlplidXYQPGLq4o=; b=QIjNq990qYzUmQiQVLz6HWL93KkJODBqo7JpiI2ok+JOjBcqdDK2Raeimg5/11QZFE +7OT52skKfIQVUxDiBRGrNKSlRil1yIVoyKvaSod5AmiSoln5Re9QspdrO8XiHviJn4x 1lBh69Pue8HSHOeq0vjH7dOsF0sHxpoiUX41fPpVqGLwIImsnGUYZXfyRWzPZ+KkBkoJ KHnYod+Izqlw/ryPWYzySWEx1sU++r/u8ni5Mpj+0J5Eq+heWXQITBWAgvcU/GcH5XHt B2O4CZGdTApNc16uoB0RknwkwV0CKhQvY7EM1C+zyKGUJP3BDlR4/pOVAlW4NSo5wFFJ 8YwQ== MIME-Version: 1.0 X-Received: by 10.58.74.164 with SMTP id u4mr1099797vev.81.1401805537684; Tue, 03 Jun 2014 07:25:37 -0700 (PDT) In-Reply-To: <538DD92B.8090807@chamonix.reportlab.co.uk> References: <538a8f48$0$29978$c3e8da3$5496439d@news.astraweb.com> <538bcfff$0$29978$c3e8da3$5496439d@news.astraweb.com> <538C5BB8.1020702@chamonix.reportlab.co.uk> <538DD92B.8090807@chamonix.reportlab.co.uk> Date: Wed, 4 Jun 2014 00:25:37 +1000 Subject: Re: Python 3.2 has some deadly infection From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1401805540 news.xs4all.nl 2975 [2001:888:2000:d::a6]:51945 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72523 On Wed, Jun 4, 2014 at 12:18 AM, Robin Becker wrote: > I think the idea that we only give meaning to binary data using encodings is > a bit limiting. A zip or gif file has structure, but I don't think it's > reasonable to regard such a file as having an encoding in the python unicode > sense. Of course it doesn't. Those are binary files. Ultimately, every file is binary; but since the vast majority of them actually contain text, in one of a handful of common encodings, it's nice to have an easy way to open a text file. You could argue that "rb" should be the default, rather than "rt", but that's a relatively minor point. ChrisA