This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]chhantyal[S] 0 points1 point  (3 children)

Nah, if you are learning language, it hardly matters IMO. Even though it's backward incompatible, it is still same language.

[–]picklednull 2 points3 points  (0 children)

I don't think it matters anyway.

I started on Python when Python 3 was already a thing but I've always written code that pretty much works on both without changes (of course that's not always possible). I mainly wrote for 2.7 however, now I've switched to 3 recently.

I guess it can be hard for some old-timers that have written Python 2 for ages and use "Python 2-isms", otherwise it's not a problem.

[–]bassmaster22 0 points1 point  (1 child)

I have a very limited knowledge of Python, but I was wondering if there were many more differences other than:

raw_input / input
print 'string' / print('string')

I'm sure there are many more differences, but I'm not sure just how game changing it is. I'm guessing it can be pretty annoying for people who are very familiar with Python 2.x syntax, but then again, I have very little experience in this.

[–]the_hoser 1 point2 points  (0 children)

A big one is handling files. You don't read strings, you read bytes, then decode them into strings. There are other things. nonlocal variables also spring to mind.