https://github.com/python/cpython/commit/4aa0e795a98325619832fbafda9ee55f46f985e3 commit: 4aa0e795a98325619832fbafda9ee55f46f985e3 branch: 3.13 author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> committer: sobolevn <m...@sobolevn.me> date: 2024-08-13T17:03:36Z summary:
[3.13] Fix `print` usage in `turtle` doctests (GH-122940) (#122977) Fix `print` usage in `turtle` doctests (GH-122940) (cherry picked from commit 901d94992eddd84ded2edc55235cbf22503c4de4) Co-authored-by: sobolevn <m...@sobolevn.me> files: M Lib/turtle.py diff --git a/Lib/turtle.py b/Lib/turtle.py index 7bfe81351b0b34..99850ae5efe348 100644 --- a/Lib/turtle.py +++ b/Lib/turtle.py @@ -1718,7 +1718,7 @@ def xcor(self): >>> reset() >>> turtle.left(60) >>> turtle.forward(100) - >>> print turtle.xcor() + >>> print(turtle.xcor()) 50.0 """ return self._position[0] @@ -1732,7 +1732,7 @@ def ycor(self): >>> reset() >>> turtle.left(60) >>> turtle.forward(100) - >>> print turtle.ycor() + >>> print(turtle.ycor()) 86.6025403784 """ return self._position[1] @@ -2335,7 +2335,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 -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com