| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks! Mostly looks good, one suggestion.
Sorry, something went wrong.
| >>> screen.register_shape("turtle.gif") | ||
|
|
||
| .. note:: | ||
| Image shapes *do not* rotate when turning the turtle, so they do not | ||
| display the heading of the turtle! | ||
| .. note:: | ||
| Image shapes *do not* rotate when turning the turtle, so they do not | ||
| display the heading of the turtle! | ||
|
|
||
| (2) *name* is an arbitrary string and *shape* is a tuple of pairs of | ||
| coordinates: Install the corresponding polygon shape. | ||
|
|
||
| .. doctest:: | ||
| :skipif: _tkinter is None | ||
| .. doctest:: | ||
| :skipif: _tkinter is None | ||
|
|
||
| >>> screen.register_shape("triangle", ((5,-3), (0,5), (-5,-3))) | ||
| >>> screen.register_shape("triangle", ((5,-3), (0,5), (-5,-3))) |
There was a problem hiding this comment.
I think the indent might have been correct before? The HTML looks better nested.
Before: https://docs.python.org/3.12/library/turtle.html#turtle.addshape
After: https://cpython-previews--104682.org.readthedocs.build/en/104682/library/turtle.html#turtle.addshape
Sorry, something went wrong.
There was a problem hiding this comment.
Oh, right. My bad. Will fix soon
Sorry, something went wrong.
There was a problem hiding this comment.
@hugovk Fixed. Is that fine ? 😅
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you!
Sorry, something went wrong.
There was a problem hiding this comment.
No problem 👍 and thank you
Sorry, something went wrong.
…com/millefalcon/cpython into fix/syntax-highlighting-turtle-docs
|
Thanks @millefalcon for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
|
Sorry, @millefalcon and @hugovk, I could not cleanly backport this to 3.11 due to a conflict. |
Sorry, something went wrong.
|
@millefalcon Would you like to make the same change for the 3.11 branch? (No requirement to use cherry_picker.) |
Sorry, something went wrong.
|
@hugovk Sure. Let me check what one needs to do for targetting a specific branch. Thanks 👍 |
Sorry, something went wrong.
|
GH-104695 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
…onGH-104682). (cherry picked from commit 2c97878) Co-authored-by: han-solo <hanish0019@gmail.com>
| Back | FazBrowse Home | New Git URL |
Fixed indentation for the code snippets in turtle library docs which was causing syntax highlighting issues
closes #104679
📚 Documentation preview 📚: https://cpython-previews--104682.org.readthedocs.build/