-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-107017: Analolgy to Pascal and C replaced. #107025
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
gh-107017: Analolgy to Pascal and C replaced. #107025
Conversation
Knowledge of arithmetic is more accessible than knowledge of other programming languages. An analogy is, therefore, more accessible.
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.
In mathematics you use ·
, ×
, :
and ÷
.
*
for multiplication is only used in programming.
It's standard and familiar to most people who use computers - anyone who has used a spreadsheet application, for example. I think that it's also made pretty clear in the examples, which in a tutorial is much more effective than complicating a brief explanation. |
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 think it's true that *
and /
have so completely won out that a) newcomers from C or Pascal don't need to be told they can be used for arithmetic, b) most people who've used computers would not find this surprising, c) /
doesn't really work like C in Python 3
My wording suggestion therefore minimises length
Co-authored-by: Shantanu <[email protected]>
Hi! I appreciate your suggestion. I like the wording better as it holds the same information but in a more condensed format. |
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.
Thank you!
Thanks @TommyUnreal for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Thanks @TommyUnreal for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
GH-107123 is a backport of this pull request to the 3.11 branch. |
(cherry picked from commit e59da0c) Co-authored-by: TommyUnreal <[email protected]> Co-authored-by: Shantanu <[email protected]>
GH-107124 is a backport of this pull request to the 3.12 branch. |
(cherry picked from commit e59da0c) Co-authored-by: TommyUnreal <[email protected]> Co-authored-by: Shantanu <[email protected]>
…7123) Co-authored-by: TommyUnreal <[email protected]> Co-authored-by: Shantanu <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
…7124) (cherry picked from commit e59da0c) Co-authored-by: TommyUnreal <[email protected]> Co-authored-by: Shantanu <[email protected]>
Co-authored-by: Shantanu <[email protected]>
Co-authored-by: Shantanu <[email protected]>
Knowledge of arithmetic is more accessible than knowledge of other programming languages. An analogy is, therefore, more accessible.
📚 Documentation preview 📚: https://cpython-previews--107025.org.readthedocs.build/