]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-88773: Added teleport method to Turtle library (#103974)
authorLiam Gersten <gerstenliam@gmail.com>
Sun, 30 Apr 2023 20:17:36 +0000 (16:17 -0400)
committerGitHub <noreply@github.com>
Sun, 30 Apr 2023 20:17:36 +0000 (13:17 -0700)
commit74a2b79c6265c92ef381b5ff0dc63903bf0178ac
tree15d4a220fe46fb1d98fed669205e255f83365645
parent654d44b3a4d3ee4d92b690668aa5189acf4f9d8f
gh-88773: Added teleport method to Turtle library (#103974)

Add a `teleport` method to `turtle` module turtle instances that acts a lot like `goto`, _but_ ensures the pen is up while warping to the new position to and can control shape filling behavior as part of the jump.

Based on an educator user feature request.

---------

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Doc/library/turtle.rst
Lib/test/test_turtle.py
Lib/turtle.py
Misc/NEWS.d/next/Library/2023-04-28-18-04-23.gh-issue-88773.xXCNJw.rst [new file with mode: 0644]