https://github.com/python/cpython/commit/344a7b535bb725a7ea144648a6a3bc3ce8485e2c commit: 344a7b535bb725a7ea144648a6a3bc3ce8485e2c branch: 3.12 author: Miss Islington (bot) <[email protected]> committer: sobolevn <[email protected]> date: 2024-08-13T16:58:37Z summary:
[3.12] Fix `print` usage in `turtle` doctests (GH-122940) (#122978) Fix `print` usage in `turtle` doctests (GH-122940) (cherry picked from commit 901d94992eddd84ded2edc55235cbf22503c4de4) Co-authored-by: sobolevn <[email protected]> files: M Lib/turtle.py diff --git a/Lib/turtle.py b/Lib/turtle.py index 811c5dfa492a72..92ac58f8e6b97f 100644 --- a/Lib/turtle.py +++ b/Lib/turtle.py @@ -1719,7 +1719,7 @@ def xcor(self): >>> reset() >>> turtle.left(60) >>> turtle.forward(100) - >>> print turtle.xcor() + >>> print(turtle.xcor()) 50.0 """ return self._position[0] @@ -1733,7 +1733,7 @@ def ycor(self): >>> reset() >>> turtle.left(60) >>> turtle.forward(100) - >>> print turtle.ycor() + >>> print(turtle.ycor()) 86.6025403784 """ return self._position[1] @@ -2336,7 +2336,7 @@ def isvisible(self): Example (for a Turtle instance named turtle): >>> turtle.hideturtle() - >>> print turtle.isvisible(): + >>> print(turtle.isvisible()) False """ return self._shown _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
