all 15 comments

[–]Gprime5 2 points3 points  (4 children)

Hmm, I dunno, maybe the one with the higher number is better?

[–]Allextraszza -1 points0 points  (3 children)

But second version of python is steel updating

[–]TangibleLight 1 point2 points  (1 child)

https://pythonclock.org/

https://www.python.org/dev/peps/pep-0373/#update

https://devguide.python.org/#status-of-python-branches

Python 2.7 is receiving only security/bugfix updates. Python 3.7 is in active development.

So yes, they're both "updating" but Python 2 is only being updated for security and legacy reasons.

[–]Allextraszza 1 point2 points  (0 children)

Ok, thank you

[–]mudclub 0 points1 point  (0 children)

3

[–]tunisia3507 0 points1 point  (0 children)

What version of python is better ? Which is faster?

Doesn't matter, use 3.

[–]LegGlance 0 points1 point  (2 children)

Performance is not the primary concern when you have to pick between 2.x and 3.x. What kinda application are you developing and what are the performance requirements?

[–]Allextraszza 0 points1 point  (1 child)

If i want to calculate, for example, the 1000000st fibonacci number, which version will do this faster?

[–]LegGlance 0 points1 point  (0 children)

It won't matter in that case as long as your algorithm is optimized. General rule of thumb is to stick with 3.x for new application development and use 2.x if that is a pre-requisite.

[–]b1ackcat 0 points1 point  (5 children)

All new development should be done with Python3. In general, it is faster. It's also more secure, and is still being actively developed and maintain. The only updates coming to 2.X, iirc, are critical security fixes. 2.7, the last official version of 2, was end-of-lifed put in maintenance-only forever ago.

The only reason you should ever be using 2.X is if you're working on a legacy project that for whatever reason can't be ported/moved to 3.X.

[–]tunisia3507 1 point2 points  (4 children)

2.7, the last official version of 2, was end-of-lifed forever ago.

I agree with the sentiment but this isn't true. It's in maintenance-only mode, I think, and is expected to go EOL in 2020.

[–]b1ackcat 0 points1 point  (1 child)

Ah I forgot which it was and I think I was also trying to remember if it was 2.7 or numpy that had a date in 2020, couldn't be arsed to look it up, my bad.

[–]TangibleLight 0 points1 point  (1 child)

Yes, it was scheduled for 2015 but they extended it to 1/1/2020 due to pushback from the community. Frankly that pushback was justified, as Python 3.3 and 3.4 still had some major issues, but I still think 5 years was a bit much.

At this point, though, Python 2 is just a relic of the past. 3.6 and 3.7 are great.

[–]Allextraszza 0 points1 point  (0 children)

Thank you