Turtle module

Michael F. Stemper mstemper at gmail.com
Wed May 26 15:15:30 EDT 2021


On 26/05/2021 13.24, Stefan Ram wrote:
> "Michael F. Stemper" <mstemper at gmail.com> writes:
>>                        What I would like to do is capture the
>> angle-representation mode on entry and restore it on return.

>    another one:
> 
> def f( turtle_ ):
>      my_turtle = turtle_.clone()
>      # now work with my_turtle only

Oooh, I like this. It's proof against other types of bullets that
might come along.

>    All of the above ideas have *not* been tested.

My first test found me with two arrows (turtle icons?) upon return.
I immediately realized what caused it, and put
    t.hideturtle()
at the end of my testbed function.

Thanks,
-- 
Michael F. Stemper
Economists have correctly predicted seven of the last three recessions.


More information about the Python-list mailing list