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


Groups > comp.lang.python > #64202

Re: Python 3.x adoption

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
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; 'python,': 0.02; 'wiki': 0.03; 'syntax': 0.04; 'base.': 0.05; 'subject:Python': 0.06; '(except': 0.07; 'compiler': 0.07; 'incompatible': 0.07; 'revision': 0.07; '3.0,': 0.09; 'invalidate': 0.09; 'latter': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'rewrite': 0.09; 'python': 0.11; 'jan': 0.12; 'programs.': 0.14; 'changes': 0.15; '"in': 0.16; '3.0.': 0.16; 'both,': 0.16; 'did.': 0.16; 'old-style': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'statements,': 0.16; 'valid.': 0.16; 'appropriate': 0.16; 'wrote:': 0.18; 'later': 0.20; 'previously': 0.22; 'print': 0.22; 'header:User- Agent:1': 0.23; '2.x': 0.24; '(or': 0.24; 'header:X-Complaints- To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'mix': 0.30; 'code': 0.31; 'url:wiki': 0.31; 'url:wikipedia': 0.31; 'standards': 0.33; 'maybe': 0.34; 'basic': 0.35; 'something': 0.35; 'but': 0.35; 'there': 0.35; 'url:org': 0.36; 'should': 0.36; 'two': 0.37; 'easily': 0.37; 'convention': 0.38; 'handle': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'changed': 0.39; 'received:org': 0.40; 'even': 0.60; 'above,': 0.60; 'mentioned': 0.61; 'new': 0.61; 'received:173': 0.61; 'complete': 0.62; 'such': 0.63; 'more': 0.64; 'temporary': 0.65; 'between': 0.67; 'believe': 0.68; 'stated': 0.69; 'respect': 0.70; 'manner': 0.72; 'therefore': 0.72; 'article': 0.77; 'comparable': 0.84; 'compilers,': 0.84; 'overall,': 0.84; 'received:fios.verizon.net': 0.84; 'forgotten': 0.91; 'email addr:aol.com': 0.96
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: Python 3.x adoption
Date Fri, 17 Jan 2014 18:03:45 -0500
References <lb434o$na8$1@speranza.aioe.org> <mailman.5472.1389728319.18130.python-list@python.org> <3f88a958-4f3f-476c-bc9f-1b38ac0d084b@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-173-75-254-207.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
In-Reply-To <3f88a958-4f3f-476c-bc9f-1b38ac0d084b@googlegroups.com>
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.5662.1389999848.18130.python-list@python.org> (permalink)
Lines 36
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1389999848 news.xs4all.nl 2935 [2001:888:2000:d::a6]:55767
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:64202

Show key headers only | View raw


On 1/17/2014 5:16 PM, beliavsky@aol.com wrote:

> I don't think the Fortran analogy is valid.

The appropriate analogy for the changes between Python 2.x and 3.x, 
which started about 1 and 2 decades after the original Python, are the 
changes between Fortran IV/66 and Fortran 77, also about 1 and 2 decades 
after the original Fortran. The latter two have a comparable number of 
differences. "In this revision of the standard [F77], a number of 
features were removed or altered in a manner that might invalidate 
previously standard-conforming programs.
   https://en.wikipedia.org/wiki/Fortran
Not mentioned in the wiki article is the change in calling convention 
from call by value to call by reference (or maybe the opposite). I 
remember a program crashing because of this when I tried it with F77.

Overall, there was more churn in Fortran up to F77 than there was in 
Python up to 3.0.

> The Fortran standards after F77 are almost complete supersets of F77, and Fortran compiler vendors handle even the deleted parts of F77, knowing their customer base. Therefore you do not need to rewrite old Fortran code to use it with Fortran 95 or 2003 compilers, and you can easily mix old-style and modern Fortran. Later Fortran standards did not invalidate basic syntax such as print statements, as Python 3 did. Python 2 and 3 are incompatible in ways that do not apply to Fortran standards pre- and post- F77.

Since 3.0, we have added new syntax ('yield from', u'' for instance) but 
I do not believe we have deleted or changed any syntax (I might have 
forgotten something minor) and I do not know of any proposal to do so 
(except to re-delete u'', which should only be used as a temporary 
crutch for 2&3 code).

 > Python 2 and 3 are incompatible in ways that do not apply to Fortran 
 > standards pre- and post- F77.

As stated above, I disagree with respect to pre-F77 and F77. Did you 
actually program in both, as I did?

-- 
Terry Jan Reedy

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


Thread

Python 3.x adoption Staszek <noreply@eisenbits.com> - 2014-01-14 20:33 +0100
  Re: Python 3.x adoption Skip Montanaro <skip@pobox.com> - 2014-01-14 13:38 -0600
    Re: Python 3.x adoption beliavsky@aol.com - 2014-01-17 14:16 -0800
      Re: Python 3.x adoption Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-17 22:51 +0000
      Re: Python 3.x adoption Terry Reedy <tjreedy@udel.edu> - 2014-01-17 18:03 -0500
        Re: Python 3.x adoption beliavsky@aol.com - 2014-01-18 05:27 -0800
          Re: Python 3.x adoption Travis Griggs <travisgriggs@gmail.com> - 2014-01-21 11:04 -0800
          Re: Python 3.x adoption Chris Kaynor <ckaynor@zindagigames.com> - 2014-01-21 11:15 -0800
          Re: Python 3.x adoption Chris Angelico <rosuav@gmail.com> - 2014-01-22 06:25 +1100
      Re: Python 3.x adoption MRAB <python@mrabarnett.plus.com> - 2014-01-17 23:12 +0000
      Re: Python 3.x adoption Chris Angelico <rosuav@gmail.com> - 2014-01-18 10:17 +1100
      Re: Python 3.x adoption Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-01-17 20:01 -0500
      Re: Python 3.x adoption Ben Finney <ben+python@benfinney.id.au> - 2014-01-18 12:18 +1100
      Re: Python 3.x adoption Ben Finney <ben+python@benfinney.id.au> - 2014-01-18 12:27 +1100
  Re: Python 3.x adoption Chris Angelico <rosuav@gmail.com> - 2014-01-15 06:44 +1100
  Re: Python 3.x adoption Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-15 02:55 +0000
    Re: Python 3.x adoption MRAB <python@mrabarnett.plus.com> - 2014-01-15 03:30 +0000
  Re: Python 3.x adoption Travis Griggs <travisgriggs@gmail.com> - 2014-01-15 07:43 -0800
    Re: Python 3.x adoption Piet van Oostrum <piet@vanoostrum.org> - 2014-01-16 13:57 +0100
  Re: Python 3.x adoption Chris Angelico <rosuav@gmail.com> - 2014-01-16 03:14 +1100
  Re: Python 3.x adoption Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-15 16:46 +0000
  Re: Python 3.x adoption Chris Angelico <rosuav@gmail.com> - 2014-01-16 04:08 +1100
  Re: Python 3.x adoption Christopher Welborn <cjwelborn@live.com> - 2014-01-15 11:37 -0600
  Re: Python 3.x adoption Grant Edwards <invalid@invalid.invalid> - 2014-01-17 15:27 +0000
    Re: Python 3.x adoption Tim Chase <python.list@tim.thechases.com> - 2014-01-17 10:15 -0600
      Re: Python 3.x adoption Grant Edwards <invalid@invalid.invalid> - 2014-01-17 20:02 +0000
        Re: Python 3.x adoption Roy Smith <roy@panix.com> - 2014-01-17 21:49 -0500
    Re: Python 3.x adoption Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-17 16:21 +0000
    Re: Python 3.x adoption Terry Reedy <tjreedy@udel.edu> - 2014-01-17 17:10 -0500

csiph-web