Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.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; 'python3': 0.07; 'string': 0.09; 'boring': 0.09; 'strings.': 0.09; 'subject:2.7': 0.09; 'cc:addr:python-list': 0.11; '24,': 0.16; 'bytearray': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'string)': 0.16; 'subject:unicode': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'separate': 0.22; 'cc:addr:python.org': 0.22; 'byte': 0.24; 'bytes': 0.24; 'days,': 0.24; 'unicode': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'rest': 0.29; 'message-id:@mail.gmail.com': 0.30; 'though.': 0.31; 'regular': 0.32; 'skip:- 30': 0.32; 'subject:time': 0.33; 'subject: (': 0.35; 'received:google.com': 0.35; 'subject:one': 0.36; 'nov': 0.38; 'pm,': 0.38; 'subject:more': 0.64; 'everything.': 0.84; '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=ZI3ax57WhXQZy1G1YBhTJi4xoG41vDYlzQvXTFAFFfc=; b=0CyBmXBTX/DNDGQ32ichdQ/22G8jjEnHmBxX2sHUmhP3hZGEtmDb7p9qnlUxm74/09 +50v60t8GklvtwAuoBnOCokiKbvuWsgyZAqfTlWzMbDMEOFI6Dv5MUOhyHh1tHVPGGL3 qkyKoEBMnYZ68MCtPk/7LuPszxH/bHLphXHElwvo5g2WBFIBcTUKd22uG51ToHIyXiT0 88R6TnkSERZWlbkZeH+Hyfzwflvbx5PcT3wRFjwnR9n/6snFO7P4bQSsiCPTA1Kb+qAh bQloOiT/yOZYouXRYKsxsQyhPpa7UhOKsgMe9uf3KxGh18EdpYLk2uGc9MoOhy6psojm VvMQ== MIME-Version: 1.0 X-Received: by 10.50.61.140 with SMTP id p12mr10174141igr.34.1416813498986; Sun, 23 Nov 2014 23:18:18 -0800 (PST) In-Reply-To: <87sih913xe.fsf@elektro.pacujo.net> 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> <87sih913xe.fsf@elektro.pacujo.net> Date: Mon, 24 Nov 2014 18:18:18 +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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1416813501 news.xs4all.nl 2845 [2001:888:2000:d::a6]:44361 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81438 On Mon, Nov 24, 2014 at 5:57 PM, Marko Rauhamaa wrote: > Yes, people call strings "Unicdoe strings" because Python2 *did have* > unicode strings separate from regular strings: > > Python2 Python3 > -------------------------------------- > string bytes (byte string) > unicode string string > > > In Python2 days, Unicode was a fancy, exotic datatype for the > connoisseurs. The rest used strings. Python3 supposedly elevates Unicode > to boring normalcy. Now it's bytes that have fallen into (unmerited) > disfavor. Py3's byte strings are still strings, though. People don't use bytearray for everything. ChrisA