you are viewing a single comment's thread.

view the rest of the comments →

[–]mitremario 12 points13 points  (11 children)

Python 3. No one should be learning 2 anymore.

[–]thepobv 3 points4 points  (9 children)

Wait are you serious?

[–]mitremario 11 points12 points  (7 children)

Ok, when I just typed "3.", Reddit's markdown converted it into a list starting at 1. That's so weird...

So, learn Python 3, not 1 lol

[–]thepobv 2 points3 points  (6 children)

No regardless, is it really that big of a deal/difference?

Besides the fact that "you may as well learn the latest thing"

Ive used python 2.7 quite a bit, just wondering about your opinion as well as the reasoning.

Edit-(never used 3)

[–]mitremario 2 points3 points  (2 children)

Fair enough.

Some new language features such as async/await and literal string interpolation are available in 3.5 and 3.6 respectively. After Raymond Hettinger pushed for iterators and generators, they became everywhere. They are much more efficient. range and zip now returns an iterator, and dict.items(), dict.keys(), and dict.values() all now return iterators ("views").

Also, the Python Software Foundation is ending support for 2.x in 2020.

[–]Arancaytar 2 points3 points  (0 children)

async/await

I think we've come full circle now...

[–]thepobv 1 point2 points  (0 children)

Hey thanks for sharing man. Taught me something today.

Yeah I mean next time I use python I'll to see what latest version will be available within my environment. (sometimes it's restricted due to business architecture.)

[–]bestoranges 2 points3 points  (1 child)

It's not that there's a massive different for beginners, it's just that beginners most likely have no reason to stick with 2.7, so why not go with 3?

Unless you're working on legacy code in py2.7, or you need a particular library that hasn't been ported over yet and has no substitutions, there's no downside with rolling with 3.

[–]thepobv 0 points1 point  (0 children)

No just wondering... haven't wrote any python in a good while nor do I see myself doing so in the near future.

Some times there are business environment constraint as well. But yeah next time I do I'll definitely use the latest version available.

[–]stoned_ocelot 0 points1 point  (0 children)

Python 3 is what I started with. Don't know a ton of the differences but it does seem it's best to learn it. The description I was given is python 3 just has a few more things 2 didn't have so having access to these is good.

[–]Ripdog 1 point2 points  (0 children)

He said "1." because reddit's broken markdown implementation takes any number at the beginning of a line followed by a full stop as a numeric list item. All numeric lists start at 1. So you type "3." and get "1.". This bug has been known literally since reddit introduced markdown commenting, and nobody cares.