News for hackers. Stuff that matters.
Re:Extend Python 2.7 life till 2020 by tonyarkles on Sunday April 13, 2014 @02:04PM (#7582174)
On both OSX and many Linux distros, Py 2 comes pre-installed but Py 3 does not. If I'm going to write simple scripts that I'm going to give out to people, it's nice not having to worry about them needing to fuck around to get the script to run.
Re:Extend Python 2.7 life till 2020 by djjaxe on Sunday April 13, 2014 @04:06PM (#7582747)
> On both OSX and many Linux distros, Py 2 comes pre-installed but Py 3 does not.

Because python 3 was not the most stable at the time of distribution of that operating system. Why would I the developer of said operating system release anything but the most stable versions of the language? This would in turn make my operating system at times less stable.

Re:Extend Python 2.7 life till 2020 by tonyarkles on Sunday April 13, 2014 @08:38PM (#7583867)
I totally agree. However, until Py3 is packaged standard it's always going to be easier to run Py2 code. For example, I have a friend who does data analysis on OSX and occasionally she gets data in a format that is ugly. I take a look at it and send her a python script that will massage it into something nice.

She's ok with the occasional "sudo pip install ..." to get a library, but if my instructions started with "ok, first install Xcode and then install homebrew" the answer would probably be "it's ok I'll just do it by hand"

Re:Extend Python 2.7 life till 2020 by collyw on Monday April 14, 2014 @04:55PM (#7588871)
Simple script like that are unlikely to be much different between Python 2 and 3 unless you are using specific libraries. Just make make all the "prints" into "prints()" and "Exeption, e" into "Exception as e", and I can't see what the differences would be.
Re:Extend Python 2.7 life till 2020 by tonyarkles on Tuesday April 15, 2014 @01:49PM (#7593227)
The difference is in the effort required to make it run at all!
Re:Extend Python 2.7 life till 2020 by takeda on Sunday April 13, 2014 @11:03PM (#7584307)
It already is in many distros.
Re:Extend Python 2.7 life till 2020 by collyw on Monday April 14, 2014 @04:51PM (#7588849)
sudo apt-get install python3. Or Whatever the OSX equivalent is.

Its not that difficult.

Arch comes with Python 3 as default.

Re:Extend Python 2.7 life till 2020 by TheCoelacanth on Tuesday April 15, 2014 @11:54AM (#7592486)
OSX doesn't come with a package manager.