-
-
Notifications
You must be signed in to change notification settings - Fork 33k
gh-138845: Correct turtle module documentation misconceptions #138882
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
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
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 for you PR, @F0RRZZ
I made some comments.
Doc/library/turtle.rst
Outdated
variables to their initial values: | ||
|
||
* position: ``(0, 0)`` | ||
* heading: ``0`` (east) |
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.
Maybe
- heading:
0
(east if standard or world mode, north if logo mode)
Doc/library/turtle.rst
Outdated
Delete the turtle's drawings from the screen. Move the turtle | ||
to position ``(0, 0)``, set its heading to the default | ||
(facing east in standard mode) and restore the following state |
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 these parentheses are unnecessary.
Maybe, you could say
set its heading to 0 and...
Lib/turtle.py
Outdated
Delete the turtle's drawings from the screen. Move the turtle | ||
to position `(0, 0)`, set its heading to the default | ||
(facing east in standard mode) and restore the following state | ||
variables to their initial values: | ||
- position: `(0, 0)` | ||
- heading: `0` (east) |
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.
The same thing concerns heading here.
@adorilson Fixed, thank you for the suggestions! |
📚 Documentation preview 📚: https://cpython-previews--138882.org.readthedocs.build/