Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #70318
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed2a.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.019 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; '16,': 0.03; 'subject:Python': 0.06; 'tries': 0.07; 'string': 0.09; 'difference,': 0.09; 'learn,': 0.09; 'pep': 0.09; 'shifting': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'windows': 0.15; '(just': 0.16; 'easier.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'spam"': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'hey': 0.18; 'wed,': 0.18; 'programming': 0.22; 'cc:addr:python.org': 0.22; '2.x': 0.24; 'bytes': 0.24; 'unicode': 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'handling': 0.26; 'push': 0.26; 'header:In-Reply-To:1': 0.27; 'converting': 0.30; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; '"do': 0.31; '3.x': 0.31; "d'aprano": 0.31; 'forces': 0.31; 'raised': 0.31; 'steven': 0.31; 'trivial': 0.31; 'anyone': 0.31; 'file': 0.32; 'everyone': 0.33; 'basic': 0.35; 'definition': 0.35; 'test': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'accessing': 0.36; 'doing': 0.36; 'effort': 0.37; 'wrong': 0.37; 'same.': 0.38; 'needed': 0.38; 'files': 0.38; 'fact': 0.38; 'pm,': 0.38; 'anything': 0.39; 'how': 0.40; 'even': 0.60; 'simple': 0.61; 'design,': 0.64; 'subject:The': 0.64; 'between': 0.67; 'biggest': 0.67; 'feeling': 0.68; 'sharing': 0.69; 'limit': 0.70; 'respect': 0.70; 'family': 0.73; '3.4': 0.84; 'confusing': 0.84; 'different.': 0.84; 'pain': 0.84; 'standards,': 0.84; 'confront': 0.91; 'to:none': 0.92; 'wholesale': 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=Vox9yLz+H9KEF0tYoe/zBELScrm3qn42zEtExqHslaU=; b=OZyjXEo+pqBcd5cm/xZmLqZhiZs9HCMUVm6BT6NIX6093RgrdhmSb7zaz4OXzmGz23 18e5YKOTt2WXdliW+YgQAJvZOX/gw9R7dQYQxKT/9kEi6uZAFSKqbWkhRvR5prNp2mgx WOjc4yRE6/avDngygTplrZhyB9bhStyFksNao4X0wFIODoLZIMJziwdeGQ37/FtoIMvs DcozTRzkmMmdUmMTDx0I+vwZS1z8v0DeeMSR2oizxrplAC8g2yKxRonJmrK2ek9bT0kc urleZk1tVX7RdpR73GP2H/NBbDkXiDanhPQGFRSb02LqcfawDZM7FJN5pMUs8Tmkp8/P QjLA== |
| MIME-Version | 1.0 |
| X-Received | by 10.52.53.101 with SMTP id a5mr1113534vdp.14.1397628882618; Tue, 15 Apr 2014 23:14:42 -0700 (PDT) |
| In-Reply-To | <534df041$0$29993$c3e8da3$5496439d@news.astraweb.com> |
| References | <liglsq$djb$1@ger.gmane.org> <mailman.9259.1397504710.18130.python-list@python.org> <lijtva$or1$1@speranza.aioe.org> <ee1d5f7d-efc5-4be2-9b41-a1e6118eb039@googlegroups.com> <lik2qa$640$1@speranza.aioe.org> <534df041$0$29993$c3e8da3$5496439d@news.astraweb.com> |
| Date | Wed, 16 Apr 2014 16:14:42 +1000 |
| Subject | Re: Martijn Faassen: The Call of Python 2.8 |
| 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.9313.1397628890.18130.python-list@python.org> (permalink) |
| Lines | 34 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1397628890 news.xs4all.nl 2941 [2001:888:2000:d::a6]:36435 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:70318 |
Show key headers only | View raw
On Wed, Apr 16, 2014 at 12:51 PM, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: > Converting "print spam" to "print(spam)" is the trivial part of it. The > biggest change between Python 2.x and 3.x is the bytes to Unicode shift, > and that is *not trivial*. Python 2.x tries very hard to make bytes and > strings interoperate even when doing so is the wrong thing to do. So > there is a lot of Python 2 code that is *broken* with respect to strings, > but *seems okay* so long as you only test it using pure ASCII. Python 3 > no longer tries to hide the difference, it forces you to confront the > fact that bytes and strings are not the same. To people raised on ASCII- > only programming standards, that's a huge paradigm shift, and a confusing > one. There's a lot to learn, a lot of pain if you don't learn it, and > there can be a lot of effort needed to migrate string code to Python 3. Has anyone ever had the same "oh great, now I have to push everyone through a paradigm shift" feeling about anything else? The only one I can think of is shifting my whole family off Windows file sharing (just accessing files everywhere) onto wholesale use of source control (have a local copy, and push your changes). > (Depending on what your code actually does. It is remarkable just how > much string code you can write that works identically in 2.x and 3.x. > Basic string handling remains basic in both.) With PEP 461 (slated for 3.5), that's going to get even easier. Not only will a simple double-quoted string "do the right thing" on both platforms, but both b"binary" and u"unicode" will support the same percent-formatting as well. But you do have to limit your definition of "2.x"; a lot of that commonality is the result of deliberate design, and NOT just "oh hey look it works", which means that 2.4 and 3.4 are very different. I respect and do not envy those who have to support both RHEL and Arch... ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Martijn Faassen: The Call of Python 2.8 Phil Dobbin <phildobbin@gmail.com> - 2014-04-14 20:32 +0100
Re: Martijn Faassen: The Call of Python 2.8 Mark H Harris <harrismh777@gmail.com> - 2014-04-15 13:32 -0500
Re: Martijn Faassen: The Call of Python 2.8 Novocastrian_Nomad <gregory.j.baker@gmail.com> - 2014-04-15 12:37 -0700
Re: Martijn Faassen: The Call of Python 2.8 Mark H Harris <harrismh777@gmail.com> - 2014-04-15 14:54 -0500
Re: Martijn Faassen: The Call of Python 2.8 Terry Reedy <tjreedy@udel.edu> - 2014-04-15 17:02 -0400
Re: Martijn Faassen: The Call of Python 2.8 Mark H Harris <harrismh777@gmail.com> - 2014-04-15 17:17 -0500
Re: Martijn Faassen: The Call of Python 2.8 Ned Batchelder <ned@nedbatchelder.com> - 2014-04-15 17:03 -0400
Re: Martijn Faassen: The Call of Python 2.8 Andrew Berg <aberg010@my.hennepintech.edu> - 2014-04-15 16:38 -0500
Re: Martijn Faassen: The Call of Python 2.8 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-04-16 02:51 +0000
Re: Martijn Faassen: The Call of Python 2.8 Chris Angelico <rosuav@gmail.com> - 2014-04-16 16:14 +1000
Re: Martijn Faassen: The Call of Python 2.8 Terry Reedy <tjreedy@udel.edu> - 2014-04-15 15:37 -0400
csiph-web