Skip to content

Commit 9c01db4

Browse files
gh-125665: Update turtledemo docstrings with correct file names (#125691)
Co-authored-by: Wulian <xiguawulian@gmail.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 parent 6f26d49 commit 9c01db4

20 files changed

+32
-86
lines changed

Doc/library/turtle.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2778,9 +2778,6 @@ Changes since Python 3.0
27782778
:func:`Screen.numinput <numinput>`. These pop up input dialogs and return
27792779
strings and numbers respectively.
27802780

2781-
- Two example scripts :file:`tdemo_nim.py` and :file:`tdemo_round_dance.py`
2782-
have been added to the :file:`Lib/turtledemo` directory.
2783-
27842781

27852782
.. doctest::
27862783
:skipif: _tkinter is None

Lib/turtledemo/bytedesign.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
""" turtle-example-suite:
2-
3-
tdemo_bytedesign.py
1+
"""turtledemo/bytedesign.py
42
53
An example adapted from the example-suite
64
of PythonCard's turtle graphics.

Lib/turtledemo/chaos.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
# File: tdemo_chaos.py
2-
# Author: Gregor Lingl
3-
# Date: 2009-06-24
4-
5-
# A demonstration of chaos
1+
"""turtledemo/chaos.py
62
3+
A demonstration of chaos.
4+
"""
75
from turtle import *
86

97
N = 80

Lib/turtledemo/clock.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
""" turtle-example-suite:
2-
3-
turtledemo/clock.py
1+
"""turtledemo/clock.py
42
53
Enhanced clock-program, showing date
6-
and time
7-
------------------------------------
8-
Press STOP to exit the program!
9-
------------------------------------
4+
and time.
105
"""
116
from turtle import *
127
from datetime import datetime

Lib/turtledemo/colormixer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# colormixer
2-
1+
"""turtledemo/colormixer.py"""
32
from turtle import Screen, Turtle, mainloop
43

54
class ColorTurtle(Turtle):

Lib/turtledemo/forest.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
""" turtlegraphics-example-suite:
1+
"""turtledemo/forest.py
22
3-
tdemo_forest.py
3+
Displays a 'forest' of 3 breadth-first trees,
4+
similar to the one in tree.py.
5+
For further details, see tree.py.
46
5-
Displays a 'forest' of 3 breadth-first-trees
6-
similar to the one in tree.
7-
For further remarks see tree.py
8-
9-
This example is a 'breadth-first'-rewrite of
10-
a Logo program written by Erich Neuwirth. See
11-
http://homepage.univie.ac.at/erich.neuwirth/
7+
This example is a breadth-first rewrite of
8+
a Logo program by Erich Neuwirth.
129
"""
1310
from turtle import Turtle, colormode, tracer, mainloop
1411
from random import randrange

Lib/turtledemo/fractalcurves.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
""" turtle-example-suite:
2-
3-
tdemo_fractalCurves.py
1+
"""turtledemo/fractalcurves.py
42
53
This program draws two fractal-curve-designs:
64
(1) A hilbert curve (in a box)

Lib/turtledemo/lindenmayer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
""" turtle-example-suite:
2-
3-
xtx_lindenmayer_indian.py
1+
"""turtledemo/lindenmayer.py
42
53
Each morning women in Tamil Nadu, in southern
64
India, place designs, created by using rice

Lib/turtledemo/minimal_hanoi.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
""" turtle-example-suite:
2-
3-
tdemo_minimal_hanoi.py
1+
"""turtledemo/minimal_hanoi.py
42
53
A minimal 'Towers of Hanoi' animation:
64
A tower of 6 discs is transferred from the
@@ -12,9 +10,6 @@
1210
1311
Discs are turtles with shape "square", but
1412
stretched to rectangles by shapesize()
15-
---------------------------------------
16-
To exit press STOP button
17-
---------------------------------------
1813
"""
1914
from turtle import *
2015

Lib/turtledemo/nim.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
""" turtle-example-suite:
2-
3-
tdemo_nim.py
1+
"""turtledemo/nim.py
42
53
Play nim against the computer. The player
64
who takes the last stick is the winner.

0 commit comments

Comments
 (0)