r/Python • • May 30 '19

Dear python2 user

Post image
1.9k Upvotes

275 comments sorted by

View all comments

8

u/[deleted] May 30 '19

I was encouraged to learn 2.7 and stick with it over 3 about 3 years ago and aside from the print statements I can’t really figure out what’s different (I’m not a programmer; I use it for data analysis, image processing in astronomy, and playing around). What are some of the big differences between 2 and 3, in the language of non-CS people?

4

u/TBSchemer May 30 '19

Holy hell, you're using 2.7 for image processing? Whoever "encouraged" you to stick with it should be locked away.

Anything involving big data is far more efficient in 3, because of the switch to lazy evaluation of iterators. Also notably, numpy and everything based on it (pandas, scikit, etc.) have already discontinued support for 2.

3

u/[deleted] May 31 '19

Well, the good news is I misremembered, and that particular professor teaching image processing insisted on 3!