running python 2 vs 3

Ned Batchelder ned at nedbatchelder.com
Thu Mar 20 21:20:47 EDT 2014


On 3/20/14 9:06 PM, Ned Batchelder wrote:
> On 3/20/14 8:32 PM, Steven D'Aprano wrote:
>> On Thu, 20 Mar 2014 16:26:39 -0400, Ned Batchelder wrote:
>>
>>> On 3/20/14 3:07 PM, Eric Jacoboni wrote:
>>>> Le 20/03/2014 16:21, Marko Rauhamaa a écrit :
>>>>
>>>>
>>>>> All tutorials will tell you to start it with
>>>>>
>>>>>      #!/usr/bin/env python
>>>>>
>>>>> which will start python2 on all (?) existing linux distros, but is
>>>>> expected to start python3 within the next decade.
>>>>
>>>> With Arch-Linux, python is python3...
>>>>
>>>>
>>> Yes, and they have been told many times that this was foolish and wrong,
>>> but it persists, much to our pain.
>>
>> How bizarre. I've been looking forward with great pleasure to Fedora
>> moving to Python 3 as the standard system Python, expecting that this
>> move from one of the big distros will start a chain reaction of others
>> doing the same thing. Perhaps Arch-Linux is guilty of being prematurely
>> Python 3, a little like those people hauled up to explain themselves to
>> the House Unamerican Activities Committee to explain why they were a
>> "premature anti-fascist".
>>
>
> My understanding is that Fedora's move will not include making the word
> "python" mean Python 3.  Their move means that Python 3 will be
> installed by default, and that their Python programs that are part of
> the distro will be Python 3 programs.  They can still refer to it as
> "python3".

 From http://fedoraproject.org/wiki/Changes/Python_3_as_Default :

    Users shouldn't notice any changes, ... /usr/bin/python will still
    point to Python 2 and depending on result of discussions with FPC,
    "yum install python-foo" will still install Python 2 version of
    the package.




-- 
Ned Batchelder, http://nedbatchelder.com




More information about the Python-list mailing list