Skip to content

Commit 891a1f8

Browse files
authored
bpo-14117: Make minor tweaks to turtledemo (GH-8002)
The 'wikipedia' example is now 'rosette', describing what it draws. The 'penrose' print output is reduced. The 'tree' '1024' output is eliminated.
1 parent d904c23 commit 891a1f8

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

Lib/turtledemo/penrose.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,6 @@ def test(l=200, n=4, fun=sun, startpos=(0,0), th=2):
144144
draw(l, n, th)
145145
tracer(1)
146146
c = clock()
147-
print("Calculation: %7.4f s" % (b - a))
148-
print("Drawing: %7.4f s" % (c - b))
149-
print("Together: %7.4f s" % (c - a))
150147
nk = len([x for x in tiledict if tiledict[x]])
151148
nd = len([x for x in tiledict if not tiledict[x]])
152149
print("%d kites and %d darts = %d pieces." % (nk, nd, nk+nd))
File renamed without changes.

Lib/turtledemo/tree.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def maketree():
4949
t = tree([p], 200, 65, 0.6375)
5050
for x in t:
5151
pass
52-
print(len(p.getscreen().turtles()))
5352

5453
def main():
5554
a=clock()
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Make minor tweaks to turtledemo. The 'wikipedia' example is now 'rosette',
2+
decribing what it draws. The 'penrose' print output is reduced. The'1024'
3+
output of 'tree' is eliminated.

0 commit comments

Comments
 (0)