Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #63255

Re: "More About Unicode in Python 2 and 3"

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; '(at': 0.04; 'languages,': 0.04; 'encoding': 0.05; 'explicitly': 0.05; 'subject:Python': 0.06; 'tries': 0.07; 'finished.': 0.09; 'http': 0.09; 'scripts,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'jan': 0.12; '"is': 0.16; '"it\'s': 0.16; 'binary,': 0.16; 'did,': 0.16; 'dismiss': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'given,': 0.16; 'imo,': 0.16; 'subject:More': 0.16; 'subject:Unicode': 0.16; 'ties': 0.16; 'written.': 0.16; 'wrote:': 0.18; 'library': 0.18; 'later': 0.20; 'meant': 0.20; 'programming': 0.22; 'cc:addr:python.org': 0.22; 'library,': 0.24; 'earlier': 0.24; 'mon,': 0.24; '(or': 0.24; 'cc:2**0': 0.24; 'developers': 0.25; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'errors': 0.30; 'important.': 0.30; 'robert': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'getting': 0.31; 'easier': 0.31; 'usually': 0.31; 'easy,': 0.31; 'subject:About': 0.31; 'stuff': 0.32; 'weeks': 0.32; 'text': 0.33; 'implemented': 0.33; 'trouble': 0.34; 'maybe': 0.34; "i'd": 0.34; 'could': 0.34; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'programming,': 0.36; "didn't": 0.36; 'should': 0.36; 'two': 0.37; 'issue': 0.38; 'pm,': 0.38; 'rather': 0.38; 'anything': 0.39; 'either': 0.39; 'even': 0.60; 'manually': 0.60; 'subject:"': 0.60; 'most': 0.60; "you'll": 0.62; 'high': 0.63; 'kind': 0.63; 'more': 0.64; 'license': 0.66; 'internet': 0.71; 'carefully': 0.74; 'glad': 0.83; 'batchelder': 0.84; "driver's": 0.84; "else's": 0.84; 'end.': 0.84; 'everything.': 0.84; 'start.': 0.84; 'niche': 0.91; 'to:none': 0.92; 'anywhere,': 0.93; 'incredibly': 0.96
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=i3PRelDnY+P4kCz4kXom4drmPvvbnEpH7cfdynxVatY=; b=fyJhdCMdM6Cbha/UPUZN7WRflDBtzGsAtNmt/RKdvAYBxc+e+lEDoe9JJKhP9SlPwp g33PzUqf3TDxfoYT/Bph7CgZ5w2NIpHQb/hQdRaxcHPDPcyXnMfzkNShVtTm0Pm7YAdZ T5msuSa1QGCTQ/1suqi1iZ0G+yGGev+skomXg42lt5dNRqtyRaUtrGLjsf3lHVyktSwe fc4irKxj7OujhYKXJeCnTMPAiV9TRIBLbnc0VAlmhGnYj9pK2a9QF7nZKTimv1ehXbfv OztR9qTDYTHmPYuIKTIBOTEL/2SIgKGExGusygf9Wd9PzGq+X4EMPD2iBfcvNrwMLnyD Bt3g==
MIME-Version 1.0
X-Received by 10.68.201.10 with SMTP id jw10mr18714822pbc.25.1388972883771; Sun, 05 Jan 2014 17:48:03 -0800 (PST)
In-Reply-To <lad05k$gf6$1@ger.gmane.org>
References <lablra$1mc$2@ger.gmane.org> <labmaj$8u2$1@ger.gmane.org> <lad05k$gf6$1@ger.gmane.org>
Date Mon, 6 Jan 2014 12:48:03 +1100
Subject Re: "More About Unicode in Python 2 and 3"
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4995.1388972886.18130.python-list@python.org> (permalink)
Lines 39
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1388972886 news.xs4all.nl 2882 [2001:888:2000:d::a6]:34652
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:63255

Show key headers only | View raw


On Mon, Jan 6, 2014 at 12:16 PM, Ned Batchelder <ned@nedbatchelder.com> wrote:
> So now we have two revered developers vocally having trouble with Python 3.
> You can dismiss their concerns as niche because it's only network
> programming, but that would be a mistake.

IMO, network programming (at least on the internet) is even more Py3's
domain (pun not intended).

1) The internet is global. You WILL come across other languages, other
scripts, everything.

2) In most cases, everything is clearly either text or binary, and
usually text has an associated (and very clear) encoding (eg HTTP
headers). If it's not explicitly given, the RFCs will often stipulate
what the encoding should be. It's pretty easy, you don't have to go
"Is this Latin-1? Maybe CP-1252? Could it be something else?".

3) The likelihood is high that you'll be working with someone else's
code at the other end. Ties in with #2 - this is why the specs are so
carefully written. Getting these things right is incredibly important.

If I'm writing something that might have to work with anything from
anywhere, I want a system that catches potential errors earlier rather
than later. I don't want to write interpolated SQL that works
perfectly until Mr O'Hara tries to sign up (or, worse, young Robert
whose sister is named "Help I'm trapped in a driver's license
factory"); I want to get it right from the start. Yes, that means more
work to get "Hello, World" going. Yes, it means that I need to get my
head around stuff that I didn't think I'd have to. (One time I
implemented Oauth manually rather than using a library - the immediate
reason was some kind of issue with the library, but I was glad I did,
because it meant I actually understood what was going on; came in
handy about two weeks later when the far end had a protocol problem.)

Most of the complaints about Py3 are "it's harder to get something
started (or port from Py2)". My answer is that it's easier to get
something finished.

ChrisA

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: "More About Unicode in Python 2 and 3" Chris Angelico <rosuav@gmail.com> - 2014-01-06 12:48 +1100
  Re: "More About Unicode in Python 2 and 3" Roy Smith <roy@panix.com> - 2014-01-05 20:56 -0500

csiph-web