Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #70306
| From | Ned Batchelder <ned@nedbatchelder.com> |
|---|---|
| Subject | Re: Martijn Faassen: The Call of Python 2.8 |
| Date | 2014-04-15 20:39 -0400 |
| References | (3 earlier) <mailman.9267.1397534089.18130.python-list@python.org> <87r44zgp5y.fsf@elektro.pacujo.net> <CAN1F8qXF_XtgXVszphOUYyq4nWHJXzErXBCAncRHcJwNh5tMBA@mail.gmail.com> <likb78$2s6$1@ger.gmane.org> <CAN1F8qU_1t697yY_zGgowMNx2DDkXgLsfisvGGx5MLbAB1hiZg@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.9307.1397608793.18130.python-list@python.org> (permalink) |
On 4/15/14 7:11 PM, Joshua Landau wrote:
> On 15 April 2014 23:18, Ned Batchelder <ned@nedbatchelder.com> wrote:
>> On 4/15/14 5:34 PM, Joshua Landau wrote:
>>> Arch is on 3.4 *default*.
>>>
>>> $> python
>>> Python 3.4.0 (default, Mar 17 2014, 23:20:09)
>>> [...]
>>>
>> Yeah, that's the wrong way to do it, and they shouldn't have done that.
>> "python" needs to mean Python 2.x for a long time.
>
> Why?
>
> The only things that break are things outside of the official repos,
> and the vast majority of the user repository works flawlessly. If I
> get something from the source, I normally run it explicitly ("python
> the_thing") and on the very rare occasion it breaks (when it's 2.x and
> uses "python" to mean "python2") I can trivially patch or wrap it, and
> file a bug report.
>
> The python = python3 choice of Arch is not what takes up maintenance
> time, and it's good to prepare developers ahead of time. That's what
> rolling release is all about: getting the best and preparing the rest.
>
The problem is files that use shebang lines:
#!/usr/bin/python
or:
#!/usr/bin/env python
If these are Python 2 files, they now don't work. Keep in mind, these
might not be files that you have written, they may have been installed
as part of another package, or written long ago.
For the official statement on "python" meaning Python 2, and more on
why, see PEP 394: 'The "python" Command on Unix-Like Systems':
http://legacy.python.org/dev/peps/pep-0394/
--
Ned Batchelder, http://nedbatchelder.com
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Martijn Faassen: The Call of Python 2.8 Chris Angelico <rosuav@gmail.com> - 2014-04-14 23:20 +1000
Re: Martijn Faassen: The Call of Python 2.8 Marko Rauhamaa <marko@pacujo.net> - 2014-04-14 16:51 +0300
Re: Martijn Faassen: The Call of Python 2.8 Chris Angelico <rosuav@gmail.com> - 2014-04-15 00:19 +1000
Re: Martijn Faassen: The Call of Python 2.8 Marko Rauhamaa <marko@pacujo.net> - 2014-04-14 17:40 +0300
Re: Martijn Faassen: The Call of Python 2.8 Chris Angelico <rosuav@gmail.com> - 2014-04-15 01:01 +1000
Re: Martijn Faassen: The Call of Python 2.8 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-04-14 15:46 +0100
Re: Martijn Faassen: The Call of Python 2.8 Pete Forman <petef4+usenet@gmail.com> - 2014-04-14 19:39 +0100
Re: Martijn Faassen: The Call of Python 2.8 Chris Angelico <rosuav@gmail.com> - 2014-04-15 01:04 +1000
Re: Martijn Faassen: The Call of Python 2.8 wxjmfauth@gmail.com - 2014-04-14 10:41 -0700
Re: Martijn Faassen: The Call of Python 2.8 Ian Kelly <ian.g.kelly@gmail.com> - 2014-04-14 12:59 -0600
Re: Martijn Faassen: The Call of Python 2.8 wxjmfauth@gmail.com - 2014-04-15 01:25 -0700
Re: Martijn Faassen: The Call of Python 2.8 Ned Batchelder <ned@nedbatchelder.com> - 2014-04-14 15:28 -0400
Re: Martijn Faassen: The Call of Python 2.8 Terry Reedy <tjreedy@udel.edu> - 2014-04-14 23:54 -0400
Re: Martijn Faassen: The Call of Python 2.8 Marko Rauhamaa <marko@pacujo.net> - 2014-04-15 08:03 +0300
Re: Martijn Faassen: The Call of Python 2.8 Terry Reedy <tjreedy@udel.edu> - 2014-04-15 04:32 -0400
Re: Martijn Faassen: The Call of Python 2.8 Ben Finney <ben+python@benfinney.id.au> - 2014-04-15 21:33 +1000
Re: Martijn Faassen: The Call of Python 2.8 Albert-Jan Roskam <fomcl@yahoo.com> - 2014-04-15 10:21 -0700
Re: Martijn Faassen: The Call of Python 2.8 Terry Reedy <tjreedy@udel.edu> - 2014-04-15 15:01 -0400
Re: Martijn Faassen: The Call of Python 2.8 Terry Reedy <tjreedy@udel.edu> - 2014-04-15 15:29 -0400
Re: Martijn Faassen: The Call of Python 2.8 Joshua Landau <joshua@landau.ws> - 2014-04-15 22:34 +0100
Re: Martijn Faassen: The Call of Python 2.8 Ned Batchelder <ned@nedbatchelder.com> - 2014-04-15 18:18 -0400
Re: Martijn Faassen: The Call of Python 2.8 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-04-16 01:18 +0000
Re: Martijn Faassen: The Call of Python 2.8 Andrew Berg <aberg010@my.hennepintech.edu> - 2014-04-15 17:32 -0500
Re: Martijn Faassen: The Call of Python 2.8 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-04-16 01:21 +0000
Re: Martijn Faassen: The Call of Python 2.8 Andrew Berg <aberg010@my.hennepintech.edu> - 2014-04-16 02:32 -0500
Re: Martijn Faassen: The Call of Python 2.8 Rustom Mody <rustompmody@gmail.com> - 2014-04-16 01:07 -0700
Re: Martijn Faassen: The Call of Python 2.8 Steven D'Aprano <steve@pearwood.info> - 2014-04-16 08:13 +0000
Re: Martijn Faassen: The Call of Python 2.8 Chris Angelico <rosuav@gmail.com> - 2014-04-16 18:02 +1000
Re: Martijn Faassen: The Call of Python 2.8 Andrew Berg <aberg010@my.hennepintech.edu> - 2014-04-16 03:42 -0500
Re: Martijn Faassen: The Call of Python 2.8 Joshua Landau <joshua@landau.ws> - 2014-04-16 00:11 +0100
Re: Martijn Faassen: The Call of Python 2.8 Ned Batchelder <ned@nedbatchelder.com> - 2014-04-15 20:39 -0400
Re: Martijn Faassen: The Call of Python 2.8 Devin Jeanpierre <jeanpierreda@gmail.com> - 2014-04-15 17:42 -0700
Re: Martijn Faassen: The Call of Python 2.8 Joshua Landau <joshua@landau.ws> - 2014-04-16 03:27 +0100
Re: Martijn Faassen: The Call of Python 2.8 Ben Finney <ben+python@benfinney.id.au> - 2014-04-15 16:08 +1000
Re: Martijn Faassen: The Call of Python 2.8 Terry Reedy <tjreedy@udel.edu> - 2014-04-15 04:33 -0400
Re: Martijn Faassen: The Call of Python 2.8 Steven D'Aprano <steve@pearwood.info> - 2014-04-15 09:41 +0000
Re: Martijn Faassen: The Call of Python 2.8 Chris Angelico <rosuav@gmail.com> - 2014-04-15 19:05 +1000
Re: Martijn Faassen: The Call of Python 2.8 Terry Reedy <tjreedy@udel.edu> - 2014-04-15 15:48 -0400
Re: Martijn Faassen: The Call of Python 2.8 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-04-16 02:52 +0000
Re: Martijn Faassen: The Call of Python 2.8 Chris Angelico <rosuav@gmail.com> - 2014-04-16 16:22 +1000
Re: Martijn Faassen: The Call of Python 2.8 wxjmfauth@gmail.com - 2014-04-15 23:30 -0700
csiph-web