cpython: cc559e1e3bd8 (original) (raw)

--- a/Lib/turtle.py +++ b/Lib/turtle.py @@ -905,7 +905,7 @@ class Shape(object): >>> poly = ((0,0),(10,-5),(0,10),(-10,-5)) >>> s = Shape("compound") >>> s.addcomponent(poly, "red", "blue")

@@ -1003,7 +1003,7 @@ class TurtleScreen(TurtleScreenBase): no backgroundimage, no eventbindings and tracing on. Example (for a TurtleScreen instance named screen):

Note: this method is not available as function. """ @@ -1077,8 +1077,8 @@ class TurtleScreen(TurtleScreenBase): Example (for a TurtleScreen instance named screen): >>> screen.setworldcoordinates(-10,-0.5,50,1.5) >>> for _ in range(36):

@@ -1182,7 +1182,7 @@ class TurtleScreen(TurtleScreenBase): >>> screen.colormode() 1.0 >>> screen.colormode(255)

@@ -1250,9 +1250,9 @@ class TurtleScreen(TurtleScreenBase): >>> screen.tracer(8, 25) >>> dist = 2 >>> for i in range(200):

@@ -1279,7 +1279,7 @@ class TurtleScreen(TurtleScreenBase): self._delayvalue = int(delay) def _incrementudc(self):

@@ -1347,16 +1347,12 @@ class TurtleScreen(TurtleScreenBase): clicked point on the canvas. num -- the number of the mouse-button, defaults to 1

-

-

+

-

@@ -1370,20 +1366,18 @@ class TurtleScreen(TurtleScreenBase): In order to be able to register key-events, TurtleScreen must have focus. (See method listen.)

>>> def f():

- -

+ """ if fun is None: if key in self._keys: @@ -1407,16 +1401,15 @@ class TurtleScreen(TurtleScreenBase): and a Turtle instance named turtle): >>> def f():

- -

@@ -1448,12 +1441,12 @@ class TurtleScreen(TurtleScreenBase): >>> running = True >>> def f():

-

@@ -1497,7 +1490,7 @@ class TurtleScreen(TurtleScreenBase): Example (for a Turtle instance named turtle): >>> turtle.screensize(2000,1500)

@@ -2085,7 +2078,7 @@ class TPen(object): Example (for a Turtle instance named turtle): >>> turtle.pensize() 1

@@ -2560,7 +2553,7 @@ class RawTurtle(TPen, TNavigator): """Delete the turtle's drawings and restore its default values. No argument. -, + Delete the turtle's drawings from the screen, re-center the turtle and set variables to the default values. @@ -2607,7 +2600,7 @@ class RawTurtle(TPen, TNavigator): Example (for a Turtle instance named turtle): >>> while undobufferentries():

@@ -2683,9 +2676,9 @@ class RawTurtle(TPen, TNavigator): >>> turtle.tracer(8, 25) >>> dist = 2 >>> for i in range(200):

@@ -2883,7 +2876,6 @@ class RawTurtle(TPen, TNavigator): >>> turtle.shapesize(5,2) >>> turtle.tilt(45) >>> turtle.tiltangle()

@@ -2928,7 +2920,7 @@ class RawTurtle(TPen, TNavigator): >>> turtle.shapesize(4,2) >>> turtle.shearfactor(-0.5) >>> turtle.shapetransform()

@@ -3126,7 +3118,7 @@ class RawTurtle(TPen, TNavigator): Example (for a Turtle instance named turtle): >>> for i in range(8):

@@ -3302,9 +3294,9 @@ class RawTurtle(TPen, TNavigator): Example (for a Turtle instance named turtle): >>> turtle.begin_fill() >>> if turtle.filling():

@@ -3534,9 +3526,9 @@ class RawTurtle(TPen, TNavigator): Example for the anonymous turtle, i. e. the procedural way: >>> def turn(x, y):

-

@@ -3552,16 +3544,17 @@ class RawTurtle(TPen, TNavigator): Example (for a MyTurtle instance named joe): >>> class MyTurtle(Turtle):

-

+

@@ -3580,9 +3573,9 @@ class RawTurtle(TPen, TNavigator): Example (for a Turtle instance named turtle): >>> turtle.ondrag(turtle.goto)

@@ -3630,10 +3623,11 @@ class RawTurtle(TPen, TNavigator): Example (for a Turtle instance named turtle): >>> for i in range(4):

-

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -87,6 +87,8 @@ Core and Builtins Library ------- +- Issue #13439: Fix many errors in turtle docstrings. +