Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'made.': 0.07; 'objects,': 0.09; 'pep': 0.09; 'subject:2.7': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; '24,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'it;': 0.16; 'subject:unicode': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'meant': 0.20; 'cc:addr:python.org': 0.22; 'byte': 0.24; 'unicode': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'usually': 0.31; 'boundary': 0.31; 'subject:time': 0.33; 'subject: (': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'data,': 0.36; 'doubt': 0.36; 'subject:one': 0.36; 'wrong': 0.37; 'clear': 0.37; 'nov': 0.38; 'subject:more': 0.64; 'relatively': 0.65; 'benefit': 0.68; 'mean.': 0.91; '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=VJm47eB33OxHX6gUVjRuHUn1O3LaFNa+TP76GTRmLqM=; b=QjSMwFB/nWANFXgUjiDUW9D0wiMLTF2X5HwOUEdqiOIfJIZWbdXTmSDORpHQ4raI6m ZhldSH3X1LPRGBIpLjdLd3ee7bCb2rOYQw0DkKZs553OXvfdk478XbcqQCXH10SmSz9L LHiCFOF6X/dyuVBMbM51v2UWyyhYauHimksrPx4nqBtufX+vMDXZ7wpUx1hF6T6Sm+XO rEgWmgBqzX1wh3rs4wYQwIEerzw1i/iO1XSt9Ut7wRaCZkuFtVLi/2TS0tWWorGLXpzW QY2+TEdpGch/vlotcHnroMejCedKoFrMF50gJdmf4VWwqi0tCEdjhE9BxGHknC2pgf9X 81PA== MIME-Version: 1.0 X-Received: by 10.42.106.12 with SMTP id x12mr22030031ico.26.1416783575963; Sun, 23 Nov 2014 14:59:35 -0800 (PST) In-Reply-To: References: <1416491999.209592.193345213.3A6FF9A4@webmail.messagingengine.com> <87ppch8zvx.fsf@elektro.pacujo.net> <87k32p6ow8.fsf@elektro.pacujo.net> <871towik8j.fsf@elektro.pacujo.net> <5470134c$0$12986$c3e8da3$5496439d@news.astraweb.com> <877fyn68m1.fsf@elektro.pacujo.net> Date: Mon, 24 Nov 2014 09:59:35 +1100 Subject: Re: python 2.7 and unicode (one more time) 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1416783584 news.xs4all.nl 2874 [2001:888:2000:d::a6]:43165 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81406 On Mon, Nov 24, 2014 at 9:51 AM, Gregory Ewing wrote: > Marko Rauhamaa wrote: >> >> Unicode strings is not wrong but the technical emphasis on Unicode is as >> strange as a "tire car" or "rectangular door" when "car" and "door" are >> what you usually mean. > > > The reason Unicode gets emphasised so much is that > until relatively recently, it *wasn't* what "string" > usually meant in Python. > > When Python 3 has been around for as long as Python > 2 was, things may change. I doubt it; the bytes() type is sufficiently stringy to require the distinction to still be made. PEP 461 makes it clear that byte strings are not blobs of opaque data, but are very definitely ASCII-compatible objects, for the benefit of boundary code. ChrisA