GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-157847: Re-write more of the `turtle` reference docs by StanFromIreland · Pull Request #159685 · python/cpython Conversation
|
There was an error while loading. Please reload this page.
Documentation build overview
18 files changed ·
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup @StanFromIreland. A few suggestions for readability for children and young adults. Fine to ship as is too.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| 9 | ||
| """ | ||
| speeds = {'fastest':0, 'fast':10, 'normal':6, 'slow':3, 'slowest':1 } | ||
| speed_strings = { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to name it speed_strings vs. speeds?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I was going to tidy up the dictionary (since it was in a bit of a mess), and I decided to change to a more precise name while I was at it. As I mentioned on the other PRs, I'm not particularly worried about churn, most of these lines blame to the original import anyway.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can we do this... Add the word "descriptive" at the start of line 2219 so it reads "descriptive speed string" or alternatively "speed description string". speed_strings is a bit confusing for learners since it encodes type in the name of the dict.
If we describe a bit more precisely at line 2219, the example name makes more sense.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I think you may have been looking at an older commit? I adjusted it to:
You can also use these names instead of numbers:
Based on Maciej's suggestion.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| """Pull the pen up. | ||
|
|
||
| Aliases: penup | pu | up | ||
|
|
||
| The turtle does not draw when it moves. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| """Pull the pen up. | |
| Aliases: penup | pu | up | |
| The turtle does not draw when it moves. | |
| """Lift the pen. The turtle does not draw when it moves. | |
| Aliases: penup | pu | up |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Applied the re-wording, but I kept the other sentence after the aliases.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think they shouldn't be splitted. The effect should be an inherent part of the explanation.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Maciej Olko <[email protected]> Co-Authored-By: Carol Willing <[email protected]>
There was an error while loading. Please reload this page.
|
Thanks @StanFromIreland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-159948 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-159949 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…9685) (#159949) gh-157847: Re-write more of the `turtle` reference docs (GH-159685) (cherry picked from commit f071bac) Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Maciej Olko <[email protected]> Co-authored-by: Carol Willing <[email protected]>
…9685) (#159948) gh-157847: Re-write more of the `turtle` reference docs (GH-159685) (cherry picked from commit f071bac) Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Maciej Olko <[email protected]> Co-authored-by: Carol Willing <[email protected]>
There was an error while loading. Please reload this page.
|
Sorry @willingc and @m-aciek, I enabled auto-merge and it merged before I saw your comments (feel free to disable it in the future, Maciek, you have to close and reopen the PR IIRC). I will address them in the next PR (as I still have a bit to do). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
No worries @StanFromIreland. It was a nit more than critical since I had already approved 😄 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.