-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Python 2 syntax in examples, why? #1091
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
Comments
If allowed, I can update everything to Python 3 syntax ;) |
@matheusfelipeog Agreed, I think it's time to switch the Guide over to Python 3 π
Well, that'd be amazing. If you want to put together a pull-request (or a series of PRs we can merge one by one) to make some of these updates that'd be great. |
Right π I will start the update soon. |
I updated everything I found π I made a pull request per updated section |
Cheers @matheusfelipeog, I just merged those PRs :) Nice work. |
Hi :)
Why use python 2 syntax in examples today? Since Python 2 has been discontinued in January 1, 2020.
Examples:
In many examples
print "string"
syntax is used.In "Create a length-N list of lists" is used:
instead:
Has a note stating the new syntax:
But is this really necessary today? Isn't it better to update everything to Python 3 syntax?
The text was updated successfully, but these errors were encountered: