Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bpo-14117: Make minor tweaks to turtledemo #8002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 29, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Lib/turtledemo/penrose.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion Lib/turtledemo/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
@@ -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.