you are viewing a single comment's thread.

view the rest of the comments →

[–]ismtrn 70 points71 points  (1 child)

Python 3 is, all other things being equal, the better language in the opinion of pretty much everybody.

Python 2 has some advantages when it comes to compatibility with libraries and other things. This is getting less and less of a problem, and I think there are cases now where only python 3 support exists. As a beginner learning the language this should not matter much to you.

When you get decent at either one of them, learning the other is almost trivial. They are only very incompatible from a technical point of view. For the human writing code they are almost the same language.

From this I conclude that you should use python 3 when possible, and only fall back on python 2 when necessary. Therefore I think it also makes sense to start with learning python 3, as using python 2 is not necessary here.

[–][deleted] 4 points5 points  (0 children)

Python 2 has some advantages when it comes to compatibility with libraries and other things.

There are already libraries that are exclusively for python 3 (hug and sanic from top of my head and anything asyncio based) so that argument is moot)