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


Groups > comp.lang.python > #60473

Re: python for everyday tasks

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.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 <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'encoding': 0.05; 'exists.': 0.07; 'problem:': 0.07; 'string': 0.09; 'enormous': 0.09; 'scripting': 0.09; 'python': 0.11; 'language.': 0.14; "wouldn't": 0.14; '16-bit': 0.16; '8-bit': 0.16; 'backward': 0.16; 'brothers': 0.16; 'compatible,': 0.16; 'exist.': 0.16; 'finney': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'mode,': 0.16; 'ought': 0.16; 'subject:tasks': 0.16; 'url:standards': 0.16; 'subject:python': 0.16; 'followed': 0.16; 'java,': 0.16; 'language': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'obviously': 0.18; "python's": 0.19; 'programming': 0.22; 'creating': 0.23; 'unicode': 0.24; 'fine': 0.24; 'developers': 0.25; 'communities': 0.26; 'define': 0.26; 'equivalent': 0.26; 'handling': 0.26; 'long,': 0.26; 'right.': 0.26; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'fixed': 0.29; 'chris': 0.29; 'am,': 0.29; 'characters': 0.30; 'restrict': 0.30; 'see,': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'easier': 0.31; 'breaking': 0.31; 'initiate': 0.31; 'invitations': 0.31; 'men': 0.31; 'really,': 0.31; "they'll": 0.31; 'though.': 0.31; 'writes:': 0.31; 'front': 0.32; 'languages': 0.32; 'community': 0.33; 'running': 0.33; 'ago': 0.33; 'entirely': 0.33; 'ourselves': 0.33; '"the': 0.34; 'there,': 0.34; 'problem': 0.35; "can't": 0.35; 'something': 0.35; "who's": 0.35; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'really': 0.36; 'acceptable': 0.36; 'false': 0.36; 'transition': 0.36; 'similar': 0.36; 'url:org': 0.36; 'should': 0.36; 'changing': 0.37; 'example,': 0.37; 'wrong': 0.37; 'two': 0.37; 'being': 0.38; 'ben': 0.38; 'nov': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'enough': 0.39; 'space': 0.40; 'even': 0.60; 'above,': 0.60; 'skip:n 30': 0.60; 'most': 0.60; 'new': 0.61; 'browser': 0.61; 'facebook': 0.61; 'times': 0.62; 'hear': 0.63; 'more': 0.64; 'finally': 0.65; 'charset:windows-1252': 0.65; 'capable': 0.67; '26,': 0.68; 'started.': 0.68; 'limit': 0.70; 'wish': 0.70; 'url:htm': 0.73; 'designers': 0.74; 'soon,': 0.74; '2.8': 0.84; 'developed.': 0.84; 'unaware': 0.84; 'sent,': 0.91; '2013': 0.98
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:to :content-type:content-transfer-encoding; bh=qjn7uonVvZvLm4EKJsAJ9kEu6yivuzSp9KRcOiqNs64=; b=JZkPjxxKNL4XYM1Ghg44x3b91b8e/KfbTArZ2VqeL+rHDZGHBK7YB87cixrRTvDCyz XWaBPwIWTf6GYaUddaUQYqCf2CBpYlpjsqD3Rw2kU+OKTc3Ibt4PV3m9IfZfoCZeC8dJ yKADiac3vZ2jvpL3YtHsK1P9XbBZgpgWSexSRZzXGo4Z8GTz5NF4zrpvgk2wFZmXo2Am YBxZAl8vMBZ1wxYAd4DlKTvFdNBkfc2Wi3ksW6GV+t2f3JI+Hx0XPsVfz/8z8bxnc7Rv LzwBFTlC3gP/5Hj6sRzjjSwuliC/b3gpUFNiBiDDNx3wMaqUP21v0Qe1V14NnqzLTGEV 6bJg==
MIME-Version 1.0
X-Received by 10.68.197.229 with SMTP id ix5mr20734492pbc.89.1385424580931; Mon, 25 Nov 2013 16:09:40 -0800 (PST)
In-Reply-To <7wli0crr6j.fsf@benfinney.id.au>
References <5737051f-26d4-4771-b4a0-d41062f1a4ef@googlegroups.com> <52900c74$0$29993$c3e8da3$5496439d@news.astraweb.com> <d41c02c1-22f4-477c-b4ad-79001f13e302@googlegroups.com> <5293689A.8040508@gmail.com> <CAPTjJmr3UEPJ7X7MKRb_oejbBqs5cZvqWjXzjSc5-yOHaEc-0w@mail.gmail.com> <7wli0crr6j.fsf@benfinney.id.au>
Date Tue, 26 Nov 2013 11:09:40 +1100
Subject Re: python for everyday tasks
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding quoted-printable
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.3209.1385424585.18130.python-list@python.org> (permalink)
Lines 72
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1385424585 news.xs4all.nl 15891 [2001:888:2000:d::a6]:41802
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:60473

Show key headers only | View raw


On Tue, Nov 26, 2013 at 10:35 AM, Ben Finney <ben+python@benfinney.id.au> wrote:
> Chris Angelico <rosuav@gmail.com> writes:
>
>> (Fifteen years. It's seventeen years since Unicode 2.0, when 16-bit
>> characters were outmoded. It's about time _every_ modern language
>> followed Python's and Pike's lead and got its Unicode support right.)
>
> Most languages that already have some support for Unicode have a
> significant amount of legacy code to continue supporting, though. Python
> has the same problem: there're still heaps of Python 2 deployments out
> there, and more being installed every day, none of which do Unicode
> right.
>
> To fix Unicode support in Python, the developers and community had to
> initiate – and is still working through – a long, high-effort transition
> across a backward-incompatible change in order to get the community to
> Python 3, which finally does Unicode right.

Yes, but Python can start that process by creating Python 3; other
languages ought to be able to do something similar. Get the process
started. It's not going to get any easier by waiting.

And, more importantly: New languages are being developed. If their
designers look at Java, they'll see "UTF-16 is fine for them, so it'll
be fine for us", but if they look at Python, they'll see "The current
version of Python does it this way, everything else is just
maintenance mode, so this is obviously the way the Python designers
feel is right". Even if 99% of running Python code is Py2, that
message is still being sent, because Python 2.8 will never exist.

> Other language communities will likely have to do a similar huge effort,
> or forever live with nearly-right-but-fundamentally-broken Unicode
> support.
>
> See, for example, the enormous number of ECMAScript deployments in every
> user-facing browser, all with the false assumption (§2 of ECMA-262
> <URL:http://www.ecma-international.org/publications/standards/Ecma-262.htm>)
> that UTF-16 and Unicode are the same thing and nothing outside the BMP
> exists.
>
> And ECMAScript is near the front of the programming language pack in
> terms of Unicode support — most others have far more heinous flaws that
> need to be fixed by breaking backward compatibility. I wish their
> communities luck.

Yeah. I'm now of the opinion that JavaScript and ECMAScript can't be
fixed ("use strict" is entirely backward compatible, but changing
string handling wouldn't be), so it's time we had a new web browser
scripting language. Really, 1996 was long enough ago that using 16-bit
characters should be considered no less wrong than 8-bit characters.
If it weren't that we don't actually need the space any time soon, I
would consider the current limit of 11141112 characters to be a
problem too; there's really no reason to restrict ourselves based on
what UTF-16 is capable of encoding any more than we should define
Unicode based on what Code Page 437 can handle.

>  \         “Nature hath given men one tongue but two ears, that we may |
>   `\          hear from others twice as much as we speak.” —Epictetus, |
> _o__)                                                      _Fragments_ |

One of my brothers just got married, and someone who's friended him on
Facebook was unaware of the invitations despite being a prolific
poster. I cited the modern equivalent of the above, namely that we
have ten fingers but only two eyes, so it's acceptable to write five
times as much as we actually bother to read...

ChrisA

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


Thread

python for everyday tasks koch.mate@gmail.com - 2013-11-22 15:59 -0800
  Re: python for everyday tasks Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-11-23 02:01 +0000
    Re: python for everyday tasks wxjmfauth@gmail.com - 2013-11-25 02:12 -0800
      Re: python for everyday tasks Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-25 13:33 +0000
      Re: python for everyday tasks Michael Torrie <torriem@gmail.com> - 2013-11-25 08:11 -0700
        Re: python for everyday tasks wxjmfauth@gmail.com - 2013-11-25 08:17 -0800
      Re: python for everyday tasks Chris Angelico <rosuav@gmail.com> - 2013-11-26 02:38 +1100
      Re: python for everyday tasks Ben Finney <ben+python@benfinney.id.au> - 2013-11-26 10:35 +1100
      Re: python for everyday tasks Chris Angelico <rosuav@gmail.com> - 2013-11-26 11:09 +1100
    Re: python for everyday tasks Pavel Volkov <negaipub@gmail.com> - 2013-11-27 22:05 +0400
    Re: python for everyday tasks Michael Torrie <torriem@gmail.com> - 2013-11-27 11:15 -0700
    Re: python for everyday tasks Chris Angelico <rosuav@gmail.com> - 2013-11-28 10:11 +1100
  Re: python for everyday tasks Ned Batchelder <ned@nedbatchelder.com> - 2013-11-22 18:32 -0800
  Re: python for everyday tasks Dan Stromberg <drsalists@gmail.com> - 2013-11-22 22:28 -0800
  Re: python for everyday tasks Dan Stromberg <drsalists@gmail.com> - 2013-11-22 22:36 -0800
  Re: python for everyday tasks Chris Angelico <rosuav@gmail.com> - 2013-11-23 18:25 +1100
    Re: python for everyday tasks koch.mate@gmail.com - 2013-11-23 16:54 -0800

csiph-web