Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #9697
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Barry Warsaw <barry@debian.org> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: MBF for deprecating Python2 usage |
| Date | Fri, 04 Aug 2017 17:50:02 +0200 |
| Message-ID | <uaN1o-rA-11@gated-at.bofh.it> (permalink) |
| References | <uawjU-5YP-3@gated-at.bofh.it> <uazhM-8iN-19@gated-at.bofh.it> <uaBtf-1rM-9@gated-at.bofh.it> <uaLCi-867-15@gated-at.bofh.it> <uaMoG-br-11@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Fri Aug 4 15:43:01 2017 |
| Old-Return-Path | <barry@debian.org> |
| X-Amavis-Spam-Status | No, score=-6.9 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate:hard: -5 |
| User-Agent | Postbox 5.0.16 (Macintosh/20170718) |
| MIME-Version | 1.0 |
| X-Enigmail-Version | 1.2.3 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/15078 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/598495F2.4050902@debian.org |
| Approved | robomod@news.nic.it |
| Lines | 53 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Fri, 04 Aug 2017 11:42:42 -0400 |
| X-Original-Message-ID | <598495F2.4050902@debian.org> |
| X-Original-References | <f8492955-8f73-8a18-456d-5bb400b5aff7@debian.org> <3109A909-3338-4717-BFD2-D65E9206FD7F@debian.org> <9614BFBC-E260-48A6-B722-DDD41E715A20@kitterman.com> <92E6FF73-391C-45FE-A213-6AAED284629D@debian.org> <87shh7z8q2.fsf@debian.org> |
| Xref | csiph.com linux.debian.maint.python:9697 |
Show key headers only | View raw
Ole Streicher wrote: > It is very usual to use "#!/usr/bin/env python" as shebang, exactly for > the case that python is not installed in /usr/bin. Sure, but then all bets are off. The script so shebanged can't assume anything about $PATH so it gets whatever it gets. Using /usr/bin/env in system provided scripts has been known to break stuff, so it's a very bad idea. Plus, if that's what you use for your own scripts, then in the future you'll be in luck because all you'd have to do is change your $PATH to point to wherever your custom built and installed Python 2 lives first, and then you'll get exactly the version you want. > That is -- at least in my environmet -- "ipython", or (for Python 3) > "ipython3". > > IMO it would be better to communicate that the best way for an > interactive session is "ipython3" (or "python3", if you insist). I would > wonder when todays tutorials (that cover Python 3) recommend to use > plain "python". But ipython doesn't come with upstream Python so that would require that Something Extra be installed. That's generally why Getting Started guides and tutorials usually recommend the built-in interactive prompt. >> * Port as much as possible to Python 3 (eventually, everything >> maintained in Debian) and /usr/bin/python3 in their shebang. > I disagree here, and I don't see an advantage over letting > /usr/bin/python just die with Python 2. /usr/bin/python didn't die with Python 2 (who else remembers 1.5.2 as an effectively LTS release? :) and I don't believe it should with Python 3. Maybe go on vacation, but eventually return home. > I would also like to point PEP 394, which has a number of arguments why > /usr/bin/python should remain as Python 2. > > https://www.python.org/dev/peps/pep-0394/ Right, but the ecosystem has evolved since then, so the discussions going on in linux-sig and the *draft* PR at https://github.com/python/peps/pull/315 are about updating the recommendations now that we're somewhere less than three years away from Python 2 EOL. Fedora is moving forward with or without us. I bet that other Linux distros will too. We can certainly do our own thing, but I think that'll make Debian the odd distro out eventually. Cheers, -Barry
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
MBF for deprecating Python2 usage Matthias Klose <doko@debian.org> - 2017-08-04 00:00 +0200
Re: MBF for deprecating Python2 usage barry@debian.org - 2017-08-04 03:10 +0200
Re: MBF for deprecating Python2 usage Scott Kitterman <debian@kitterman.com> - 2017-08-04 05:30 +0200
Re: MBF for deprecating Python2 usage Piotr Ożarowski <piotr@debian.org> - 2017-08-04 08:10 +0200
Re: MBF for deprecating Python2 usage barry@debian.org - 2017-08-04 16:20 +0200
Re: MBF for deprecating Python2 usage Ole Streicher <olebole@debian.org> - 2017-08-04 17:10 +0200
Re: MBF for deprecating Python2 usage Barry Warsaw <barry@debian.org> - 2017-08-04 17:50 +0200
Re: MBF for deprecating Python2 usage Scott Kitterman <debian@kitterman.com> - 2017-08-04 23:10 +0200
Re: MBF for deprecating Python2 usage Barry Warsaw <barry@debian.org> - 2017-08-05 03:40 +0200
Re: MBF for deprecating Python2 usage Scott Kitterman <debian@kitterman.com> - 2017-08-05 04:10 +0200
Re: MBF for deprecating Python2 usage Geoffrey Thomas <geofft@ldpreload.com> - 2017-08-08 00:50 +0200
Re: MBF for deprecating Python2 usage Diane Trout <diane@ghic.org> - 2017-08-08 00:00 +0200
Re: MBF for deprecating Python2 usage Barry Warsaw <barry@debian.org> - 2017-08-08 00:50 +0200
Re: MBF for deprecating Python2 usage Ben Finney <bignose@debian.org> - 2017-08-08 01:40 +0200
Re: MBF for deprecating Python2 usage Diane Trout <diane@ghic.org> - 2017-08-08 01:50 +0200
Re: MBF for deprecating Python2 usage Ben Finney <bignose@debian.org> - 2017-08-08 03:40 +0200
Re: MBF for deprecating Python2 usage Barry Warsaw <barry@debian.org> - 2017-08-08 04:00 +0200
Re: MBF for deprecating Python2 usage Ben Finney <bignose@debian.org> - 2017-08-08 04:20 +0200
Re: MBF for deprecating Python2 usage Diane Trout <diane@ghic.org> - 2017-08-08 05:10 +0200
Re: MBF for deprecating Python2 usage Ben Finney <bignose@debian.org> - 2017-08-08 05:30 +0200
Re: MBF for deprecating Python2 usage Diane Trout <diane@ghic.org> - 2017-08-08 05:40 +0200
Re: MBF for deprecating Python2 usage Ben Finney <bignose@debian.org> - 2017-08-08 06:00 +0200
Re: MBF for deprecating Python2 usage Barry Warsaw <barry@debian.org> - 2017-08-08 07:00 +0200
Re: MBF for deprecating Python2 usage Geoffrey Thomas <geofft@ldpreload.com> - 2017-08-08 04:10 +0200
Re: MBF for deprecating Python2 usage Ben Finney <bignose@debian.org> - 2017-08-08 04:30 +0200
Re: MBF for deprecating Python2 usage Diane Trout <diane@ghic.org> - 2017-08-08 05:20 +0200
Re: MBF for deprecating Python2 usage Ben Finney <bignose@debian.org> - 2017-08-08 05:40 +0200
Re: MBF for deprecating Python2 usage Steve Langasek <vorlon@debian.org> - 2017-08-08 07:30 +0200
Re: MBF for deprecating Python2 usage Ben Finney <bignose@debian.org> - 2017-08-08 08:20 +0200
Re: MBF for deprecating Python2 usage Geoffrey Thomas <geofft@ldpreload.com> - 2017-08-10 17:40 +0200
Re: MBF for deprecating Python2 usage Ole Streicher <olebole@debian.org> - 2017-08-08 21:20 +0200
Re: MBF for deprecating Python2 usage Scott Kitterman <debian@kitterman.com> - 2017-08-08 21:30 +0200
Re: MBF for deprecating Python2 usage Matthias Klose <doko@debian.org> - 2017-08-04 13:00 +0200
Re: MBF for deprecating Python2 usage Scott Kitterman <debian@kitterman.com> - 2017-08-04 14:40 +0200
Re: MBF for deprecating Python2 usage Adrian Bunk <bunk@debian.org> - 2017-08-07 00:00 +0200
Re: MBF for deprecating Python2 usage Adrian Bunk <bunk@debian.org> - 2017-08-07 01:00 +0200
Re: MBF for deprecating Python2 usage Christian Seiler <christian@iwakd.de> - 2017-08-07 01:10 +0200
csiph-web