Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #64202
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: Python 3.x adoption |
| Date | 2014-01-17 18:03 -0500 |
| References | <lb434o$na8$1@speranza.aioe.org> <mailman.5472.1389728319.18130.python-list@python.org> <3f88a958-4f3f-476c-bc9f-1b38ac0d084b@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5662.1389999848.18130.python-list@python.org> (permalink) |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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