Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed2.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; 'from:addr:yahoo.co.uk': 0.04; 'yet.': 0.04; 'subject:Python': 0.06; '*not*': 0.07; 'tests.': 0.07; '2to3': 0.09; 'anticipate': 0.09; 'lawrence': 0.09; 'lines.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'bug': 0.12; 'language.': 0.14; 'changes': 0.15; 'porting': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'language': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'replace': 0.24; 'tracker': 0.26; 'supported': 0.26; 'header:X-Complaints- To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'change,': 0.30; 'code': 0.31; 'lines': 0.31; 'another': 0.32; 'open': 0.33; 'subject:the': 0.34; 'could': 0.34; 'application': 0.37; 'needed': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'company': 0.60; 'our': 0.64; 'charset:windows-1252': 0.65; 'change?': 0.84; 'received:as9105.com': 0.84; 'received:dsl.as9105.com': 0.84; 'received:dynamic.dsl.as9105.com': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Python 2 to 3 conversion - embrace the pain Date: Mon, 16 Mar 2015 18:14:14 +0000 References: <20150316025301.GA94576@cskk.homeip.net> <873855tts4.fsf@jester.gateway.sonic.net> <55068cb0$0$12923$c3e8da3$5496439d@news.astraweb.com> <8761a1gxhq.fsf@jester.gateway.sonic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 80-44-192-56.dynamic.dsl.as9105.com User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.19 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1426529673 news.xs4all.nl 2877 [2001:888:2000:d::a6]:42788 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:87580 On 16/03/2015 17:47, Terry Reedy wrote: > On 3/16/2015 5:13 AM, INADA Naoki wrote: > >> Another experience is porting Flask application in my company from >> Python 2 to Python 3. >> It has 26k lines of code and 7.6k lines of tests. >> >> Since we don't need to support both of PY2 and PY3, we used 2to3. >> 2to3 changes 740 lines. > > That is less than 3% of the lines. Were any changes incorrect? How > many lines *not* flagged by 2to3 needed change? > >> I had to replace google-api-client with >> requests+oauthlib since >> it had not supported PY3 yet. > > Other than those needed for this change, which 2to3 could not anticipate > or handle? > Any of the 47 open issues on the bug tracker to start with :( -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence