Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'third-party': 0.04; 'url:pipermail': 0.05; 'killer': 0.07; 'tests.': 0.07; 'users,': 0.07; 'bytes.': 0.09; 'conversions': 0.09; 'exceeds': 0.09; 'lawrence': 0.09; 'parsing': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'variable,': 0.09; 'works.': 0.09; 'runs': 0.10; 'python': 0.11; '2.7': 0.14; 'language.': 0.14; 'escapes': 0.16; 'internally': 0.16; 'porting': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'roy': 0.16; 'summary,': 0.16; 'value"': 0.16; 'subject:python': 0.16; 'language': 0.16; 'wrote:': 0.18; 'module': 0.19; 'differ': 0.19; 'help.': 0.21; 'seems': 0.21; 'putting': 0.22; 'tests': 0.22; 'header:User-Agent:1': 0.23; '2.x': 0.24; 'driven': 0.24; 'passes': 0.24; 'platform,': 0.24; 'unicode': 0.24; 'fairly': 0.24; 'least': 0.26; 'supported': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'point': 0.28; "i'm": 0.30; 'code': 0.31; '3.x': 0.31; 'python2.7': 0.31; 'staying': 0.31; 'probably': 0.32; 'compatible': 0.32; 'maintaining': 0.32; "we're": 0.32; 'another': 0.32; 'url:python': 0.33; 'running': 0.33; "can't": 0.35; 'etc': 0.35; 'but': 0.35; 'there': 0.35; 'version': 0.36; 'doing': 0.36; 'url:org': 0.36; 'effort': 0.37; 'too': 0.37; 'two': 0.37; 'project': 0.37; 'starting': 0.37; 'handle': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'rather': 0.38; 'moving': 0.39; 'realize': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'changed': 0.39; 'received:org': 0.40; 'url:mail': 0.40; 'even': 0.60; 'subject:"': 0.60; 'new': 0.61; 'today,': 0.61; 'simple': 0.61; 'making': 0.63; 'real': 0.63; 'our': 0.64; 'interest': 0.64; 'more': 0.64; 'different': 0.65; 'between': 0.67; 'production.': 0.68; 'smith': 0.68; 'default': 0.69; 'risk': 0.72; 'increase': 0.74; 'low': 0.83; 'gap': 0.84; 'superiority': 0.84; 'tasked': 0.84; 'url:python-dev': 0.84; 'retention': 0.91; 'average': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Blog "about python 3" Date: Sat, 04 Jan 2014 07:30:55 +0000 References: <52c1dc4c$0$2877$c3e8da3$76491128@news.astraweb.com> <52C1F5EC.3020808@stoneleaf.us> <52c29416$0$29987$c3e8da3$5496439d@news.astraweb.com> <52C5A3BA.5080700@chamonix.reportlab.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-147-28-114.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <52C5A3BA.5080700@chamonix.reportlab.co.uk> 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: 60 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1388820638 news.xs4all.nl 2918 [2001:888:2000:d::a6]:59989 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:63115 On 02/01/2014 17:36, Robin Becker wrote: > On 31/12/2013 15:41, Roy Smith wrote: >> I'm using 2.7 in production. I realize that at some point we'll need to >> upgrade to 3.x. We'll keep putting that off as long as the "effort + >> dependencies + risk" metric exceeds the "perceived added value" metric. >> > We too are using python 2.4 - 2.7 in production. Different clients > migrate at different speeds. > >> >> To be honest, the "perceived added value" in 3.x is pretty low for us. >> What we're running now works. Switching to 3.x isn't going to increase >> our monthly average users, or our retention rate, or decrease our COGS, >> or increase our revenue. There's no killer features we need. In >> summary, the decision to migrate will be driven more by risk aversion, >> when the risk of staying on an obsolete, unsupported platform, exceeds >> the risk of moving to a new one. Or, there will be some third-party >> module that we must have which is no longer supported on 2.x. >> > > +1 > >> If I were starting a new project today, I would probably start it in 3.x. > +1 > > I just spent a large amount of effort porting reportlab to a version > which works with both python2.7 and python3.3. I have a large number of > functions etc which handle the conversions that differ between the two > pythons. > > For fairly sensible reasons we changed the internal default to use > unicode rather than bytes. After doing all that and making the tests > compatible etc etc I have a version which runs in both and passes all > its tests. However, for whatever reason the python 3.3 version runs slower > > 2.7 Ran 223 tests in 66.578s > > 3.3 Ran 223 tests in 75.703s > > I know some of these tests are fairly variable, but even for simple > things like paragraph parsing 3.3 seems to be slower. Since both use > unicode internally it can't be that can it, or is python 2.7's unicode > faster? > > So far the superiority of 3.3 escapes me, but I'm tasked with enjoying > this process so I'm sure there must be some new 'feature' that will > help. Perhaps 'yield from' or 'raise from None' or ....... > > In any case I think we will be maintaining python 2.x code for at least > another 5 years; the version gap is then a real hindrance. Of interest https://mail.python.org/pipermail/python-dev/2012-October/121919.html ? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence