r/Python • • Jun 27 '18

Python 3.7.0 released

https://www.python.org/downloads/release/python-370/
1.3k Upvotes

293 comments sorted by

View all comments

202

u/uFuckingCrumpet Jun 28 '18

Finally, we can get rid of python 2.

0

u/[deleted] Jun 28 '18

[deleted]

19

u/uFuckingCrumpet Jun 28 '18

There are probably a lot different reasons. Some that occur to me are:

- Python is pretty frequently used by non comp-scientists are are generally less inclined to embrace learning new languages (or changes to languages they are already comfortable with).

- Moving from Python 2 to Python 3 typically breaks stuff. So unless you start something in Python 3, it's usually a headache to get everything back up and running if you switch.

- Not all libraries get updated. This again goes somewhat back to non CS people contributing lots of code but not necessarily having the interest to update for newer versions.

- The differences between Python 2 and Python 3 aren't drastic enough to convince most people to switch.

7

u/[deleted] Jun 28 '18

[removed] — view removed comment

7

u/MartyMacGyver from * import * Jun 28 '18 edited Jun 28 '18

There are a lot of libraries that are or will soon be Python 3 only going forward.

Keep learning Python 3, be aware of Python 2, and steer clear of companies that plan to stay on Python 2 indefinitely. You'll hear 1001 excuses, and they all come down to:

  • They're too lazy

  • They're too cheap

  • They won't be around much longer

  • They'll be around forever, and your headaches will grow exponentially the longer you are there

It's worth the work to stay up-to-date, or within a close range (IMHO 3.6 is the sweet spot until 3.7 is widespread).

Edit: Oh yes, and unless you like painful surprises when it comes to ANY Unicode input/output, stick to Python 3. Requires a bit more thinking when it comes to strings, but it handles them while Python 2 routinely surprises you in painful ways at inconvenient times when it encounters a Unicode char it can't handle in some part of your code you never thought it'd even hit.