diff options
-rwxr-xr-x | Lib/turtledemo/penrose.py | 3 | ||||
-rw-r--r-- | Lib/turtledemo/rosette.py (renamed from Lib/turtledemo/wikipedia.py) | 0 | ||||
-rwxr-xr-x | Lib/turtledemo/tree.py | 1 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-06-29-00-31-36.bpo-14117.3nvDuR.rst | 3 |
4 files changed, 3 insertions, 4 deletions
diff --git a/Lib/turtledemo/penrose.py b/Lib/turtledemo/penrose.py index b2a5813..e118d6a 100755 --- a/Lib/turtledemo/penrose.py +++ b/Lib/turtledemo/penrose.py @@ -144,9 +144,6 @@ def test(l=200, n=4, fun=sun, startpos=(0,0), th=2): draw(l, n, th) tracer(1) c = clock() - print("Calculation: %7.4f s" % (b - a)) - print("Drawing: %7.4f s" % (c - b)) - print("Together: %7.4f s" % (c - a)) nk = len([x for x in tiledict if tiledict[x]]) nd = len([x for x in tiledict if not tiledict[x]]) print("%d kites and %d darts = %d pieces." % (nk, nd, nk+nd)) diff --git a/Lib/turtledemo/wikipedia.py b/Lib/turtledemo/rosette.py index 47d0f00..47d0f00 100644 --- a/Lib/turtledemo/wikipedia.py +++ b/Lib/turtledemo/rosette.py diff --git a/Lib/turtledemo/tree.py b/Lib/turtledemo/tree.py index 9998fa8..98a20da 100755 --- a/Lib/turtledemo/tree.py +++ b/Lib/turtledemo/tree.py @@ -49,7 +49,6 @@ def maketree(): t = tree([p], 200, 65, 0.6375) for x in t: pass - print(len(p.getscreen().turtles())) def main(): a=clock() diff --git a/Misc/NEWS.d/next/Library/2018-06-29-00-31-36.bpo-14117.3nvDuR.rst b/Misc/NEWS.d/next/Library/2018-06-29-00-31-36.bpo-14117.3nvDuR.rst new file mode 100644 index 0000000..eee55f2 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-06-29-00-31-36.bpo-14117.3nvDuR.rst @@ -0,0 +1,3 @@ +Make minor tweaks to turtledemo. The 'wikipedia' example is now 'rosette', +decribing what it draws. The 'penrose' print output is reduced. The'1024' +output of 'tree' is eliminated. |