Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'output': 0.05; 'subject:Python': 0.06; 'second.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; "wouldn't": 0.14; 'barrier': 0.16; 'camp': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'influential': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'obviously': 0.18; 'bit': 0.19; 'input': 0.22; 'cc:addr:python.org': 0.22; 'byte': 0.24; 'bytes': 0.24; 'string,': 0.24; 'unicode': 0.24; 'cc:2**0': 0.24; 'first,': 0.26; 'second': 0.26; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; 'unix': 0.29; 'change,': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'apparently': 0.31; 'helpful.': 0.31; 'subject:some': 0.31; 'class': 0.32; 'another': 0.32; 'fri,': 0.33; 'agree': 0.35; 'operations': 0.35; 'point.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'should': 0.36; 'list': 0.37; 'being': 0.38; 'does': 0.39; 'extremely': 0.39; 'sure': 0.39; 'users': 0.40; 'how': 0.40; 'first': 0.61; 'information': 0.63; 'more': 0.64; 'worth': 0.66; 'real-world': 0.68; '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=FncxDt5OwpsvpmcDt4UKNN5IwqltGsTs5OL7FhnK2os=; b=Ex5bB3u9iH4FM2w0trL2iRKRP4jtlroBKzp/0Dh+oU79kq04PDoJZyuzrQpowTwcHa 4JyyS+nPxZlTMGhTSKRk/9wdf0R07cvl94a+9beE0RjWq7Knu4uDaAJI74gclFBN4Ja3 mPjKuKv9LhxoTImEKrhWnshcj/IdnkStaf/4C2J0MnqIiwWzu0MeEpAP+qn7wrCe2OMA HS1XoKpEekORy/j0SFdTx+PouqqP2d/t3Jry67nP9fVjQkvffhZRtWdm+AaPUyjTc0ht Czw9aAxjByBv9zhrQH7jTaTba1PgeAF9PNZIEqM8LuVZHpq8x0ewCV7Vn570MgeZ5GYW AaLg== MIME-Version: 1.0 X-Received: by 10.220.249.6 with SMTP id mi6mr11995038vcb.33.1401983418503; Thu, 05 Jun 2014 08:50:18 -0700 (PDT) In-Reply-To: <53908EB3.70202@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> <538f1a61$0$29978$c3e8da3$5496439d@news.astraweb.com> <53902bb1$0$11109$c3e8da3@news.astraweb.com> <87wqcvu20h.fsf@elektro.pacujo.net> <7b3543f6-6f62-49c5-abdc-e2783fd6d629@googlegroups.com> <87oay7tnxt.fsf@elektro.pacujo.net> <53908EB3.70202@chamonix.reportlab.co.uk> Date: Fri, 6 Jun 2014 01:50:18 +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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1401983426 news.xs4all.nl 2908 [2001:888:2000:d::a6]:45479 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72717 On Fri, Jun 6, 2014 at 1:37 AM, Robin Becker wrote: > I think I'm in the unix camp as well. I just think that an extra assumption > on input output isn't always helpful. In python 3 byte strings are second > class which I think is wrong; apparently pressure from influential users is > pushing to make byte strings more first class which is a good thing. I wouldn't say they're second-class; it's more that the bytes type was considered to be more like a list of ints than like a Unicode string, and now that there are a few years' worth of real-world usage information to learn from, it's known that some more string-like operations will be extremely helpful. So now they're being added, which I agree is a good thing. Whether b"a"[0] should be b'a' or ord(b'a') is another sticking point. The Py2 str does the first, the Py3 bytes does the second. That one's a bit hard to change, but what I'm not sure of is how significant this is to new-build Py3 code. Obviously it's a barrier to porting, but is it important on its own? However, that's still not really "byte strings are second class". ChrisA