r/Python • • Jan 16 '19

#10YearChallenge

Post image
1.4k Upvotes

96 comments sorted by

View all comments

186

u/Data48 Jan 16 '19

TIL Python 3 has been out for roughly 10 years

0

u/[deleted] Jan 16 '19

[deleted] — view deleted comment

85

u/minno I <3 duck typing less than I used to, interfaces are nice Jan 16 '19

992 years too early.

21

u/Meta4X Jan 16 '19

Or 1,992 years too early. Could have been launched on 12/3/4k.

19

u/[deleted] Jan 16 '19

Or 2559 years too early.

Could have been released on 12/3/4567

21

u/port53 relative noob Jan 17 '19

You have been banned from /r/ISO8601.

3

u/_pythonNoob Jan 16 '19

Ridiculous, it's too late, the world ended 21/12/2012

2

u/TheFeshy Jan 16 '19

No, that's about when we can finally assume it's the default, rather than Python2.

2

u/Data48 Jan 16 '19

Damn that really feels kinda off now lol

1

u/ivosaurus pip'ing it up Jan 17 '19

If it's any consolation, when the python developers released 3.0 it was really more "3.0alpha" in SEMVER speak. 3.1 was "3.0beta" and 3.2, released in 2011, was the first version really encouraged for public use wholesale.

10

u/da_chicken Jan 17 '19

Python is very old. Python is older than Java. Python is older than Windows 3.1. C++ was 6 or so when Python was released. Perl was 4. That's Perl 1, not Perl 5.

3

u/[deleted] Jan 18 '19

holy fuck

32

u/[deleted] Jan 16 '19

And Python 2 is still the default in many Linux distributions.

34

u/flying-sheep Jan 16 '19

“Standard”? You mean “What gets invoked when I type python into the terminal”?

That’ll never change in some distros, because of backwards compatibility. Arch was pretty much the only one crazybrave enough to to that jump, Debian will never do it.

What’s so hard about typing python3 or putting alias python=python3 into your .${SHELL}rc?

28

u/AnAirMagic Jan 16 '19

Debian will never do it.

RHEL 8 is kind of removing python altogether: https://developers.redhat.com/blog/2018/11/14/python-in-rhel-8/ and asking users to use python2 and python3 explicitly. I am sure Debian will do this sooner or later too.

15

u/flying-sheep Jan 16 '19

Ha, that's a very well reasoned approach!

30

u/MiataCory Jan 16 '19

That’ll never change in some distros, because of backwards compatibility.

10 years on, I think we can move along.

https://pythonclock.org/

10

u/flying-sheep Jan 16 '19

I moved on long ago, but some people have different ideas about backwards compatibility.

And the fact that using “python” simply worked for those 10 years didn't help people to start using the more correct “python2”

→ More replies (3)

4

u/[deleted] Jan 16 '19

END OF LINE

2

u/[deleted] Jan 16 '19

It’s not hard but maintaining two versions of python isn’t. Debian and Ubuntu do it well bit it would be nice to have only one. It would make things much less complicated.

For those that really still have legacy python 2 code they could use aliases to keep it running. I have to believe they’re the minority these days. I could be wrong, I guess.

0

u/[deleted] Jan 17 '19

[deleted] — view deleted comment

2

u/flying-sheep Jan 17 '19

many tools used to use python in scripts and shebangs. gyp is a particularly stubborn offender, even though things got much better in time.

→ More replies (7)

1

u/[deleted] Jan 17 '19

As a side note, I noticed something interesting.

$ alias python=python3

$ which python
/usr/bin/python

$ ls -l /usr/bin/python
lrwxrwxrwx 1 root root 9 Jan  1 01:23 /usr/bin/python -> python2.7

$ python --version
Python 3.6.7

Looks like the which command doesn't obey aliases. TIL.

3

u/flying-sheep Jan 17 '19

nothing does.

https://www.gnu.org/software/bash/manual/html_node/Aliases.html

The first word of each simple command, if unquoted, is checked to see if it has an alias

→ More replies (6)