Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'encoding': 0.05; 'subject:Python': 0.06; 'defaults': 0.07; 'referring': 0.07; 'utf-8': 0.07; '22,': 0.09; 'ascii': 0.09; 'default.': 0.09; 'false,': 0.09; 'pep': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'cookie,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Unicode': 0.16; 'wrote:': 0.18; '2001': 0.19; 'cc:addr:python.org': 0.22; 'text,': 0.24; 'unicode': 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'header :In-Reply-To:1': 0.27; 'feature': 0.29; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'front': 0.32; 'received:google.com': 0.35; 'explains': 0.36; 'clear': 0.37; 'pm,': 0.38; 'that,': 0.38; '2.3.': 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=jgwIRDaZNseS9dg+M222LRGP8YAqJgOh0OTV6Tadv1o=; b=h6iSHc5x/OiNMkQO45UXIGMfcEw+5/9dYSp7bidnHK3r3DyN5fnaWUuTe8wUTdq0Qk KnAl4AhSwxTvu+rR64Z6lDmlOlZmMwKDXk4+EJRr7h5nHZdvpnnt1mGBUt4dTCyTxB6i fNrCXZ0oD6Ecfkrrhz99MIlRRa86ZvERjQzokDW9UnqAp2vbdX8pJBMvvSzbbTr4FeSA 3h3/EFoKdT4FoRWEhjoJO2AaPm3lecSPuegqMhBxqUPvvgjD+CRVg7ghXv+g3eNtCGgF KN6F3y6JOr79Hssy22HTeDKx2dR4EzwXxHLaUR5jZVKA8c3ZSNqstPUEW+ghZ93l6y8x gq4g== MIME-Version: 1.0 X-Received: by 10.52.142.10 with SMTP id rs10mr29914965vdb.3.1398148378348; Mon, 21 Apr 2014 23:32:58 -0700 (PDT) In-Reply-To: <7a873fe6-a2fa-4c77-bb3a-b00eab2f7cff@googlegroups.com> References: <7x8ur1esa5.fsf@ruckus.brouhaha.com> <53539a64$0$29993$c3e8da3$5496439d@news.astraweb.com> <7a873fe6-a2fa-4c77-bb3a-b00eab2f7cff@googlegroups.com> Date: Tue, 22 Apr 2014 16:32:58 +1000 Subject: Re: Unicode in Python 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: 1398148386 news.xs4all.nl 2970 [2001:888:2000:d::a6]:35310 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:70489 On Tue, Apr 22, 2014 at 4:18 PM, Rustom Mody wrote: > Ive reworded it to make it clear that I am referring to the character-sets and > not encodings. It's still false, and was in Python 2 as well. The only difference on that front is that, in the absence of an encoding cookie, Python 2 defaults to ASCII while Python 3 defaults to UTF-8. PEP 263 explains the feature as it was added to Py2; PEP 3120 makes the change to a UTF-8 default. Python source code is Unicode text, and has been since 2001 and Python 2.3. ChrisA