Live data from Hacker News

New features you can't use unless you are in Python 3

asmeurer.com

51–60 of 264 posts

Re: New features you can't use unless you are in Python 3

#51
post #20

Does anyone use 2.x by choice? I've only seen it required as to not break legacy code.

This shouldn't be downvoted, it's a legit question. I hear some people really really prefer `print as statement`, but I've never seem them in real life.

I do, but I understand the reasoning behind why it was changed. So I made a snippet in my editor and moved on with my life, haha. New print is now easier to to type than the old.

Re: New features you can't use unless you are in Python 3

#52

Open page. Nothing works. Enable their scripts. First slide shows but nothing works - except the link to the pdf version. Why not give a link to the pdf version in a element?

Works for me! when I hit or right-arrow it goes to the next slide, for previous slide.

Re: New features you can't use unless you are in Python 3

#53

Earlier quoted context omitted.

What I said was the default version of Python is old on most distributions. For example, CentOS 6 ships with Python 2.6 out of the box. Even faster moving distros (like Ubuntu) are still trying to make Python 3 the default (although at least Ubuntu ships with both 2.7 and 3.4+ out of the box).

Centos 6 is 7 years old, if you are still using that it is unfortunately your problem. It's not hard to write "python3" on a modern dist. Ubuntu has 3.5 and 3.6 is easily installable though not yet default 3.x.

You think someone is going to start a new project and use a 7 year old OS? I don't think it's "unfortunately my problem" when biz/client reqs for a 7 yo OS are completely out of my hands, unless of course the mindset is "use Python 3 or die trying".

Re: New features you can't use unless you are in Python 3

#54

Earlier quoted context omitted.

Python 3 has been available on most dists for 5-10 years.

What I said was the default version of Python is old on most distributions. For example, CentOS 6 ships with Python 2.6 out of the box. Even faster moving distros (like Ubuntu) are still trying to make Python 3 the default (although at least Ubuntu ships with both 2.7 and 3.4+ out of the box).

What do you mean, default? "/usr/bin/python" symlinked to "/usr/bin/python3" instead of "/usr/bin/python2"?

Re: New features you can't use unless you are in Python 3

#55

Earlier quoted context omitted.

This shouldn't be downvoted, it's a legit question. I hear some people really really prefer `print as statement`, but I've never seem them in real life.

Just from __past__ import print_statement I really hope someone makes this work. I literally laughed and thought that it was a troll the first time I saw the future print import and that being used as a compelling reason that I should switch to Py3.

Consistency and keyword args are useful.

Re: New features you can't use unless you are in Python 3

#57

Earlier quoted context omitted.

What I said was the default version of Python is old on most distributions. For example, CentOS 6 ships with Python 2.6 out of the box. Even faster moving distros (like Ubuntu) are still trying to make Python 3 the default (although at least Ubuntu ships with both 2.7 and 3.4+ out of the box).

Centos 6 is 7 years old, if you are still using that it is unfortunately your problem. It's not hard to write "python3" on a modern dist. Ubuntu has 3.5 and 3.6 is easily installable though not yet default 3.x.

Yes, it is his problem. And he's solving it by using python 2. Sometimes you have to use older distributions.

Re: New features you can't use unless you are in Python 3

#58

Earlier quoted context omitted.

What I said was the default version of Python is old on most distributions. For example, CentOS 6 ships with Python 2.6 out of the box. Even faster moving distros (like Ubuntu) are still trying to make Python 3 the default (although at least Ubuntu ships with both 2.7 and 3.4+ out of the box).

Centos 6 is 7 years old, if you are still using that it is unfortunately your problem. It's not hard to write "python3" on a modern dist. Ubuntu has 3.5 and 3.6 is easily installable though not yet default 3.x.

Just because an operating system is "old" is not a reason to change it... Also it is still supported: https://wiki.centos.org/FAQ/General#head-fe8a0be91ee3e7dea81...
Post reply on HN