Skip to content

Conversation

@khanmdmaaz
Copy link

Differences in Python 2 and 3. Most of the Beginners might not be familiar with.

@Akuli
Copy link
Owner

Akuli commented Oct 18, 2018

I'm sorry, but like most other python 2 vs 3 difference lists, this list is pretty much crap. It doesn't mention the most important difference: unicode "just works" in Python 3, but it's very hard to write python 2 code that works well with unicode (that is, u'blah' everywhere is nowhere near enough, because unicode + str encodes with ASCII, and every time you do something with strings, you need to check which kind of strings they are to avoid it). I have mentioned this in the README. I would however appreciate an update to the README that mentions that Python 2 will retire in about a year.

@Akuli
Copy link
Owner

Akuli commented Oct 18, 2018

Thinking about this a bit more, maybe a python 2 to 3 porting guide might be a good idea? The porting guide could contain something like your difference list, and it could also explain the unicode problem in more detail than what I explained in the README.

@Akuli
Copy link
Owner

Akuli commented Jul 25, 2020

I don't know why two years ago I said that your contribution is crap. Maybe that was a bad day. Thanks for trying to contribute.

Python 2 is no longer supported, and I updated README.md to say that.

@Akuli Akuli closed this Jul 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants