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


Groups > comp.lang.python > #63383

Re: the Gravity of Python 2

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <jeanpierreda@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; 'broken': 0.04; 'subject:Python': 0.06; 'context': 0.07; 'encoded': 0.07; 'string': 0.09; 'bits': 0.09; 'caller': 0.09; 'migration': 0.09; 'type,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'jan': 0.12; '2.7': 0.14; '3.3,': 0.16; '__future__': 0.16; 'feasible': 0.16; 'imports': 0.16; 'per-module': 0.16; 'wrote:': 0.18; 'module': 0.19; '(the': 0.22; 'import': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'basis,': 0.24; 'of.': 0.24; 'unicode': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'changes,': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'feature': 0.29; 'statement': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'easier': 0.31; 'division': 0.31; 'enabled': 0.31; 'ok.': 0.31; 'operators': 0.31; 'penalties': 0.31; 'though.': 0.31; 'probably': 0.32; 'stuff': 0.32; 'run': 0.32; '(e.g.': 0.33; 'skip:_ 10': 0.34; 'subject:the': 0.34; "i'd": 0.34; "can't": 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'done': 0.36; 'method': 0.36; 'example,': 0.37; 'wrong': 0.37; 'project': 0.37; 'easily': 0.37; 'performance': 0.37; 'pm,': 0.38; 'anything': 0.39; 'skip:_ 30': 0.39; 'sure': 0.39; 'how': 0.40; 'future': 0.60; 'break': 0.61; 'making': 0.63; 'kind': 0.63; 'more': 0.64; 'different': 0.65; 'to:addr:gmail.com': 0.65; 'direct': 0.67; 'biggest': 0.67; 'money': 0.72; 'actually,': 0.84; 'easier,': 0.84; 'score.': 0.84; 'imagine': 0.93; 'serious': 0.97
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=dSDJdVmtHMoCWqS7NJ6Q9/Z7mlJUFwh5nuLiD8bGvHo=; b=f9gRI8wc1YP87O0DrLIOUYah7VRj2jyiDEFdEbqw4QEEtvK1PZSdI9xT3rlQNVSm7q WKeJ/sTsTMxYt489sb5Up+6xHXdbuIhPXG40lksnmkbsoTN019ZUTmFv+ndjMPgJHbF+ fG/ga5vBqFzt12qOnLOXsxvaVTAfHze5ERznPZ3iVuapi2zvZCSoNOqT3W8hmwPfS2lU U+ZgODLN0tA/3Un0H+wZzmL9fL/u6CXXWBR9zKsB7PzvRsfmw0KUzaRRPwj726LugLuO 0c/RdhfcvqUHmjvanWQ68VL/JfW7LRf7VJEbmkBKzyDD1zztiKH8BmU8qqKVpUJpAO2a nh9Q==
X-Received by 10.49.127.101 with SMTP id nf5mr192441291qeb.61.1389054464662; Mon, 06 Jan 2014 16:27:44 -0800 (PST)
MIME-Version 1.0
In-Reply-To <CAPTjJmqzc2AQJ6TrBtCFnT+NBp8uYWMxMhtGNpLr+NGyhoxO-g@mail.gmail.com>
References <laf00q$10k$1@ger.gmane.org> <CAPTjJmqzc2AQJ6TrBtCFnT+NBp8uYWMxMhtGNpLr+NGyhoxO-g@mail.gmail.com>
From Devin Jeanpierre <jeanpierreda@gmail.com>
Date Mon, 6 Jan 2014 16:27:04 -0800
Subject Re: the Gravity of Python 2
To Chris Angelico <rosuav@gmail.com>
Content-Type text/plain; charset=UTF-8
Cc "python-list@python.org" <python-list@python.org>
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.5100.1389054467.18130.python-list@python.org> (permalink)
Lines 31
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1389054468 news.xs4all.nl 2954 [2001:888:2000:d::a6]:39901
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:63383

Show key headers only | View raw


On Mon, Jan 6, 2014 at 4:19 PM, Chris Angelico <rosuav@gmail.com> wrote:
> Can we get a run-down of everything that actually must be broken in
> 2.7 -> 3.3, that can't be backported via __future__, so we can start
> cherry-picking which bits to break in 2.8? The biggest one is going to
> be Unicode strings, for a large number of people (the print statement
> and division operators can be __future__'d, lots of other stuff got
> backported into 2.7). I'd be prepared to bet money that that one will
> NOT be broken in 2.8, meaning that it achieves nothing on that score.
> So how much easier will the migration actually be?

Actually, this brings up something I'm unsure of. Is there any change
that can't, in theory, be put into __future__, so that if every module
in your project and its transitive dependencies imports everything
from __future__, it can run on Python 3 without changes, and where it
is realistically feasible to allow different modules to have different
things they import from __future__?

For example, I imagine that it is kind of _silly_ to have a
__future__.disable_str_autoencoding on a per-module basis, because
some modules' functions will fail when they are given the wrong type,
and some won't -- but in the context of making migration easier, that
silliness is probably OK. More fundamental is probably that it can't
actually be done easily or without serious performance penalties (e.g.
the relevant string method would have to look up the callstack to see
if its direct caller came from a module which enabled that future
feature).

I'm not sure there's anything that can't in principle be
sort-of-sanely encoded as a __future__ feature though.

-- Devin

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


Thread

Re: the Gravity of Python 2 Devin Jeanpierre <jeanpierreda@gmail.com> - 2014-01-06 16:27 -0800

csiph-web