Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.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; 'python,': 0.02; 'subject:Python': 0.06; 'affected': 0.07; '2to3': 0.09; 'doctest': 0.09; 'noted,': 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; 'jan': 0.12; '2.7': 0.14; '.py': 0.16; 'comprises': 0.16; 'daughter': 0.16; 'idlelib': 0.16; 'jr.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'files.': 0.16; 'wrote:': 0.18; 'library': 0.18; 'app': 0.19; 'later': 0.20; 'work,': 0.20; 'seems': 0.21; 'tests': 0.22; 'header:User- Agent:1': 0.23; '2.x': 0.24; 'initial': 0.24; 'versions': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'on,': 0.29; 'largest': 0.30; 'work.': 0.31; 'code': 0.31; '3.x': 0.31; 'libraries': 0.31; 'noticed': 0.34; 'convert': 0.35; 'but': 0.35; 'there': 0.35; 'opposed': 0.36; 'done': 0.36; 'being': 0.38; 'depends': 0.38; 'limited,': 0.38; 'same.': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'pm,': 0.38; 'little': 0.38; 'itself': 0.39; 'received:71': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'even': 0.60; 'improved': 0.60; 'most': 0.60; 'conversion': 0.61; 'mentioned': 0.61; 'making': 0.63; 'situation': 0.65; 'believe': 0.68; 'sam': 0.68; 'overall': 0.69; '3.4': 0.84; 'improved.': 0.84; 'received:fios.verizon.net': 0.84; 'differences': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: GO vs Python Date: Mon, 25 Aug 2014 01:56:21 -0400 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-71-175-90-87.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: 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: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1408946198 news.xs4all.nl 2839 [2001:888:2000:d::a6]:44832 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76964 On 8/24/2014 10:57 PM, Sam Fourman Jr. wrote: > my initial reason for even looking at GO, was because, I noticed that if > I wanted to move my largest clients app from Python 2.x to 3.x it was > almost a rewrite..... idlelib comprises about 60 .py files. The 2.7 versus 3.4 versions are perhaps 99% the same. The one change affected most all files was 'Tkinter' to 'tkinter'. Some of the differences are not necessary for 2.7 code (as opposed to 2.5 versus 3.0). I believe most of the conversion was done with 2to3. > and then when I noticed the libraries for python > 3.x were limited, and some python 2.x libraries are not even making a > 3.x version... The overall situation has improved in the last couple of years. But as Chris noted, what matters is the particular library or libraries one depends on, and if it is not available, whether 2to3 will convert it* or whether there is a replacement. * My daughter wanted to use PyBrain with 3.4. We ran it through 2to3 and while the doctest based tests did not work, the code itself seems to with little additional work. You later mentioned that GO is compiled. Python, of course, can be also, and there are various options, some still being improved. -- Terry Jan Reedy