[Python-checkins] r85930 - in python/branches/py3k: Doc/library/turtle.rst Lib/turtle.py

alexander.belopolsky python-checkins at python.org
Fri Oct 29 19:16:50 CEST 2010


Author: alexander.belopolsky
Date: Fri Oct 29 19:16:49 2010
New Revision: 85930

Log:
Issue 7061: Explained 'gon'

Modified:
   python/branches/py3k/Doc/library/turtle.rst
   python/branches/py3k/Lib/turtle.py

Modified: python/branches/py3k/Doc/library/turtle.rst
==============================================================================
--- python/branches/py3k/Doc/library/turtle.rst	(original)
+++ python/branches/py3k/Doc/library/turtle.rst	Fri Oct 29 19:16:49 2010
@@ -714,7 +714,10 @@
       >>> 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 @@
    :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::

Modified: python/branches/py3k/Lib/turtle.py
==============================================================================
--- python/branches/py3k/Lib/turtle.py	(original)
+++ python/branches/py3k/Lib/turtle.py	Fri Oct 29 19:16:49 2010
@@ -1575,7 +1575,10 @@
         >>> 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
 


More information about the Python-checkins mailing list