Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!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; 'programmer': 0.03; 'heavily': 0.04; 'subject:Python': 0.06; 'elements.': 0.07; 'important,': 0.07; 'versions,': 0.07; '2to3': 0.09; 'answering': 0.09; 'desired,': 0.09; 'executed': 0.09; 'subject:language': 0.09; 'unmodified': 0.09; 'cc:addr:python-list': 0.11; 'changes': 0.15; 'arbitrarily': 0.16; 'backward': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject: \n ': 0.16; 'subject:?)': 0.16; 'subject:unicode': 0.16; 'syntactic': 0.16; 'worst': 0.16; 'wrote:': 0.18; 'wed,': 0.18; '3.0': 0.19; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'asking': 0.27; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'breaking': 0.31; 'file': 0.32; 'compatible': 0.32; 'tool': 0.35; '(2)': 0.35; 'point.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'changing': 0.37; 'two': 0.37; 'even': 0.60; 'worry': 0.60; 'new': 0.61; "you're": 0.61; 'different': 0.65; 'mar': 0.68; '26,': 0.68; 'brain': 0.68; 'subject:this': 0.83; '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=6O4xGSTEazhrhX3gQHs8BGI5fx0743L7kDtbPDfqTj4=; b=bO4wFTwLG/3l7MEFFbvpBrBTNiCiFoQxQxwMr/549xPoDikDhwINlJrG4x7PvtqgEO 5QuDhsOjGwguaxxdTmhtV6sBc4XUJfLNHmVxNH+G5w/ktzINv64NjcxaYOJrbAI8/VRT 3jzhEGv9fTIZ5UnDJmJ2JZwXWWEqYKOUMbRrsMvFhkiEqtK02SKUG1KqQd+QBii0LOpE m5qwGqLNJZ2taZfbH4BAX4SMyQVurCDXcMkkM79NneYQ2AjtZGZ7uT9y9umO2ZfUBGT8 DmO7QZDTMMbU82DidA5zXhj29FK6sZc7N+R7zmRxxAS939uaQLEm0MgKLyBiETWi+aQr p8PA== MIME-Version: 1.0 X-Received: by 10.68.112.164 with SMTP id ir4mr10868593pbb.153.1395755415691; Tue, 25 Mar 2014 06:50:15 -0700 (PDT) In-Reply-To: <38bbeeeb-8e3b-47fa-a5e7-e3ab40432fb4@googlegroups.com> References: <9daf0806-02de-4447-964c-c8f8953c23e5@googlegroups.com> <532d5bd9$0$29994$c3e8da3$5496439d@news.astraweb.com> <0b78649a-16b3-4410-8258-e859578d62be@googlegroups.com> <53060a97-44fb-4e53-a7a7-d5eeed416f62@googlegroups.com> <5331595D.5020008@rece.vub.ac.be> <53317191.7050701@rece.vub.ac.be> <38bbeeeb-8e3b-47fa-a5e7-e3ab40432fb4@googlegroups.com> Date: Wed, 26 Mar 2014 00:50:15 +1100 Subject: Re: Time we switched to unicode? (was Explanation of this Python language feature?) 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: 1395755419 news.xs4all.nl 2876 [2001:888:2000:d::a6]:37288 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69027 On Wed, Mar 26, 2014 at 12:07 AM, Rustom Mody wrote: > What you are answering (2) is somewhat different from what Anton is asking (1). > > 1. Use a tool (2to3 inspired) to help move programs to the the new lexicon > 2. Use 2to3 to (help) write code that is backward-compatible > > It is an invariable given that when heavily compatible code is desired, the > programmer gets the worst of all worlds That is true. But writing cross-compatible code IS important, and that means that backward compatibility is still important, and that breaking it is a cost - which was my original point. Other non-backward-compatible changes at 3.0 are not justification to arbitrarily change the meanings of syntactic elements. Don't forget, even if you're not writing a single file that gets executed unmodified on two versions, you still have to worry about your brain changing gear. ChrisA