diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-10-29 17:16:49 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2010-10-29 17:16:49 (GMT) |
commit | 3cdfb123606fc1eb0af10552488ccec13a781bd0 (patch) | |
tree | 8e25f688f79d2d3d4c0398976d59acf3b264301a | |
parent | 9f62d1c5dda72967de0af002428ccdcb9f8de6de (diff) | |
download | cpython-3cdfb123606fc1eb0af10552488ccec13a781bd0.zip cpython-3cdfb123606fc1eb0af10552488ccec13a781bd0.tar.gz cpython-3cdfb123606fc1eb0af10552488ccec13a781bd0.tar.bz2 |
Issue 7061: Explained 'gon'
-rw-r--r-- | Doc/library/turtle.rst | 6 | ||||
-rw-r--r-- | Lib/turtle.py | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/Doc/library/turtle.rst b/Doc/library/turtle.rst index 08fb7a8..9b5c3c0 100644 --- a/Doc/library/turtle.rst +++ b/Doc/library/turtle.rst @@ -714,7 +714,10 @@ Settings for measurement >>> turtle.left(90) >>> turtle.heading() 90.0 - >>> turtle.degrees(400.0) # angle measurement in gon + + Change angle measurement unit to grad (also known as gon, + grade, or gradian and equals 1/100-th of the right angle.) + >>> turtle.degrees(400.0) >>> turtle.heading() 100.0 >>> turtle.degrees(360) @@ -1511,6 +1514,7 @@ Window control :param args: a color string or three numbers in the range 0..colormode or a 3-tuple of such numbers + Set or return background color of the TurtleScreen. .. doctest:: diff --git a/Lib/turtle.py b/Lib/turtle.py index 18d9a56..5e55f09 100644 --- a/Lib/turtle.py +++ b/Lib/turtle.py @@ -1575,7 +1575,10 @@ class TNavigator(object): >>> turtle.left(90) >>> turtle.heading() 90 - >>> turtle.degrees(400.0) # angle measurement in gon + + Change angle measurement unit to grad (also known as gon, + grade, or gradian and equals 1/100-th of the right angle.) + >>> turtle.degrees(400.0) >>> turtle.heading() 100 |