The Wayback Machine - https://web.archive.org/web/20201117231109/https://github.com/Akuli/python-tutorial/pull/6
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differences in Python 2 and 3 #6

Closed
wants to merge 3 commits into from
Closed

Conversation

@khanmdmaaz
Copy link

@khanmdmaaz khanmdmaaz commented Oct 14, 2018

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

khanmdmaaz added 3 commits Oct 14, 2018
…2 and Python 3.md
@Akuli
Copy link
Owner

@Akuli 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 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 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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.