[Python-checkins] cpython (2.7): #12677: correct turtle orientation in doc
sandro.tosi
python-checkins at python.org
Sun Aug 7 17:15:02 CEST 2011
http://hg.python.org/cpython/rev/a30e6c4bf486
changeset: 71765:a30e6c4bf486
branch: 2.7
user: Sandro Tosi <sandro.tosi at gmail.com>
date: Sun Aug 07 17:09:15 2011 +0200
summary:
#12677: correct turtle orientation in doc
files:
Demo/turtle/about_turtle.txt | 4 ++--
Doc/library/turtle.rst | 4 ++--
Lib/lib-tk/turtle.py | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/Demo/turtle/about_turtle.txt b/Demo/turtle/about_turtle.txt
--- a/Demo/turtle/about_turtle.txt
+++ b/Demo/turtle/about_turtle.txt
@@ -7,10 +7,10 @@
kids. It was part of the original Logo programming language developed
by Wally Feurzig and Seymour Papert in 1966.
-Imagine a robotic turtle starting at (0, 0) in the x-y plane. Give it
+Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it
the command turtle.forward(15), and it moves (on-screen!) 15 pixels in
the direction it is facing, drawing a line as it moves. Give it the
-command turtle.left(25), and it rotates in-place 25 degrees clockwise.
+command turtle.right(25), and it rotates in-place 25 degrees clockwise.
By combining together these and similar commands, intricate shapes and
pictures can easily be drawn.
diff --git a/Doc/library/turtle.rst b/Doc/library/turtle.rst
--- a/Doc/library/turtle.rst
+++ b/Doc/library/turtle.rst
@@ -18,10 +18,10 @@
part of the original Logo programming language developed by Wally Feurzig and
Seymour Papert in 1966.
-Imagine a robotic turtle starting at (0, 0) in the x-y plane. Give it the
+Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it the
command ``turtle.forward(15)``, and it moves (on-screen!) 15 pixels in the
direction it is facing, drawing a line as it moves. Give it the command
-``turtle.left(25)``, and it rotates in-place 25 degrees clockwise.
+``turtle.right(25)``, and it rotates in-place 25 degrees clockwise.
By combining together these and similar commands, intricate shapes and pictures
can easily be drawn.
diff --git a/Lib/lib-tk/turtle.py b/Lib/lib-tk/turtle.py
--- a/Lib/lib-tk/turtle.py
+++ b/Lib/lib-tk/turtle.py
@@ -27,10 +27,10 @@
kids. It was part of the original Logo programming language developed
by Wally Feurzig and Seymour Papert in 1966.
-Imagine a robotic turtle starting at (0, 0) in the x-y plane. Give it
+Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it
the command turtle.forward(15), and it moves (on-screen!) 15 pixels in
the direction it is facing, drawing a line as it moves. Give it the
-command turtle.left(25), and it rotates in-place 25 degrees clockwise.
+command turtle.right(25), and it rotates in-place 25 degrees clockwise.
By combining together these and similar commands, intricate shapes and
pictures can easily be drawn.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list