[Python-ideas] Migration of /usr/bin/python to python3

Wes Turner wes.turner at gmail.com
Thu Mar 12 23:04:30 CET 2015


On Mar 12, 2015 5:00 PM, "Andrew Barnert" <abarnert at yahoo.com> wrote:
>
> On Mar 12, 2015, at 6:55 AM, Wes Turner <wes.turner at gmail.com> wrote:
>>
>> On Mar 12, 2015 4:25 AM, "Antoine Pitrou" <solipsis at pitrou.net> wrote:
>> >
>> > On Wed, 11 Mar 2015 13:43:25 -0600
>> > Neil Schemenauer <nas-python at arctrix.com>
>> > wrote:
>> > > This has been brought up elsewhere, I think this is a better forum
>> > > to discuss it.  Changing /usr/bin/python directly to python3.x is
>> > > bad idea, in my option.  It's going to cause users trouble and the
>> > > benefit to Python 3.x users is not worth it.  Instead, let's try to
>> > > find a smooth migration path.
>> >
>> > As a data point, when you install Python 3 using Conda, the executable
>> > is already called "python":
>> >
>> > $ python
>>
>> Brew and pyenv also rely upon $PATH to determine which executable named
'python[maj.min]' to run a script marked as executable with.
>>
>> +1 for the /usr/bin/env python[maj[.min]] approach is likely most
portable (because it uses $PATH for what it is for)
>>
>> * OSX 10.9 is still on 2.7.5 (i think w/o SSL security updates(!))
>> * OSX 10.10 has ?.? ([1] lists 2.7.1 as most recent)
>> * I think it would be reasonable to request an update that adds a
'/usr/bin/python2' symlink, so that paths can be '/usr/bin/env
python[maj[.min]'.
>
> http://openradar.appspot.com/radar?id=5833516721897472
>
> If you want to file your own bug report with Apple, you can mention that
it's a dup of radar 20143311.

I sent an email to product-security AT apple.com (
https://www.apple.com/support/security/) with a link to this thread;
because TLS.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150312/1c30e162/attachment.html>


More information about the Python-ideas mailing list