-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Python 3 Upgrade #1683
Python 3 Upgrade #1683
Conversation
This comment has been minimized.
This comment has been minimized.
Whichever you prefer. Third option:
That's the idea behind preparing the updates that depend on each other on a separate branch: We don't have to cover everything in a single PR, and more than one person can work on different aspects. |
Automating it with the variable might be a good idea, especially to keep the lesser-active translation more in sync. Though, it can result in these translations getting internally inconsistent, if stuff that depends on the version but hasn't been automated doesn't get re-translated. Would 4863b61 already cover all occurrences of the Python version number(s)? |
As far as I know, Python 3.8 and 3.9 are fully backwards-compatible to the Python version(s) we currently use, i.e., everything that will work in Python 3.6 should work in 3.8 and 3.9, too. So there is no need to update Python intro. (We should probably test it with the new Python version(s), but I don't expect to find any differences in behavior except maybe for slightly different output formats here and there.) While I very much like the newly introduced features of the newer Python versions, I don't think any of them are relevant enough for newcomers that they'd have to be covered in the Intro. If we ever come to a different conclusion, we can still make that change then, in a new PR. |
This comment has been minimized.
This comment has been minimized.
On file
Can simply use |
I'm not sure. The IIRC the |
As for |
I don't find that as a valid statement since there are other short forms of options used inside tutorial. For eg, -r, --requirement in pip install, -u, --set-upstream in git push etc. When I started learning python, i have also google all these to understand what they really do. We can add a 'NOTE' under pip install -U p about its -U option is --upgrade shortform. How about that? |
This comment has been minimized.
This comment has been minimized.
Sorry, I don't remember. 😐 |
👍
I'm not sure I understand your question. Can you rephrase it? (If English isn't your native language, maybe write it in your native language.)
Yes, converting a draft PR to a normal, merge-able PR is completely OK. You don't have to file a new PR for the same thing. |
Yeah, with such an explanation (be it in a note admonition or just in the prose) it should be fine. Feel free to open a separate PR for that. (Separate, as it's independent from the python version change.) |
About I don't think it was a Windows specific issue. On Windows, too, a virtualenv created by After some research, I guess the real reason is, that Python 3's
(Though I'm not quite sure how the Since Django 3.1 requires Python ≥ 3.6 we can probably drop the workaround for all operating systems. (Though, we should test on all of them, first.) |
Hope this helps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good, except for some details:
Sounds good to me.
…On November 14, 2020 3:57:23 PM GMT+01:00, Nikhil John ***@***.***> wrote:
@nikhiljohn10 commented on this pull request.
> ```
-If you have a different version of Python installed, at least 3.4.0
(e.g. 3.6.0), then you don't have to upgrade. If you don't have Python
installed, or if you want a different version, first check what Linux
distribution you are using with the following command:
+If you have a different version of Python installed, at least 3.4.0
(e.g. {{ book.py_release }}), then you don't have to upgrade. If you
don't have Python installed, or if you want a different version, first
check what Linux distribution you are using with the following command:
That's a great idea. How does the `{{ book.py_min_version }}` sounds?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#1683 (comment)
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some URLs point to specific Python versions other than they should refer now.
Should we have variables for them, too, so that they can be changed at the same place as the versions themselves?
Co-authored-by: Raphael Das Gupta <github.com@raphael.dasgupta.ch>
I have generated a stagging site under my personal domain. This contains all the above commits. https://django.nikz.in/en/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed another thing:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and nice that it'll be easier in the future.
@das-g shall we merge it or is there anything else to do? |
I'm not aware of anything more that would have to be done for changing the Python version(s). According to its release notes, the currently used Django version (2.2) does support both Python versions the tutorial will mention with this PR: Python 3.6 & Python 3.8. Thus it should be fine to merge this right into I didn't yet have time to test the complete tutorial with any of the new Python versions, and probably won't have time for that in the near future. So if anyone did test it or will test it, please comment here. Nonetheless, I'm confident that this shouldn't introduce any major problems. Shall I go ahead an merge it, @ekohl ? (Or, if you agree, feel free to merge it yourself.) |
I'm in a similar position so I was also a bit hesitant to merge. However, like you I'm also confident it won't introduce major problems. Let's merge it. Thanks @nikhiljohn10! |
Draft for Python 3 upgrade
If this draft is acceptable, i'll create a PR using these commits.
@das-g @ekohl Please review. Thanks