Skip to content
← Back to Community
Processing limit to using Python with Turtle?
Profile icon
snowdena

Is there a processing limit to using Python with Turtle?

All I'm doing is drawing shapes and rotating, and drawing again to make patterns. see https://repl.it/@snowdena/turtle-patterns

pat(32) works, but anything above 32 causes the code to hang part way through the loop with the turtle spinning on the spot.

I have the same issue with a number of python turtle scripts. They all work up to a limit, then hang with the spinning turtle.

Note: the code works find in Python 3.6.6 on my pc.

Any ideas?

thanks

Voters
Profile icon
AndreaPaolucci
Profile icon
AnthonyDennis
Profile icon
snowdena
Comments
hotnewtop
Profile icon
snowdena

Screenshots of it hanging...

tutrlepattern33

tutrlepattern34

tutrlepattern44

Profile icon
E-Sheep

@snowdena try pat(36)

Profile icon
snowdena

I use Chrome on a Windows 10 laptop.
Just tested in different browsers, it works in both Edge and Internet Explorer.

Tried a Windows 7 desktop - works in IE but not Chrome
Tried a Windows 10 desktop - works in Edge and IE but not Chrome

Appears to be a problem with Chrome.

Thanks for the help.

Profile icon
Geocube101

Your code already had it set up for pat(33)
When I ran it, the program completed just fine

Profile icon
sylashur

I did something similar but a lot more random, so I just thought it was some glitch that happens if some specific angles and lines get picked, but it might be the same problem you're having.
https://repl.it/@sylashur/RCCCGHAP
If you run that code a lot, eventually you'll get something that works, but most of the time it just breaks, I haven't tried running it on a local Python IDLE but I'll put the results here when I do.