[issue44607] Teleport method for turtle class

2021-07-11 Thread Muffinlicious


New submission from Muffinlicious :

I use turtle pretty often in a teaching setting. It's extremely common that 
I'll define the following function at the top of my code:

def teleport(x, y):
turtle.penup()
turtle.setpos(x, y)
turtle.pendown()

Shouldn't this sort of method already exist within the turtle class?

--
components: Tkinter
messages: 397286
nosy: Muffinlicious
priority: normal
severity: normal
status: open
title: Teleport method for turtle class
type: enhancement
versions: Python 3.11

___
Python tracker 
<https://bugs.python.org/issue44607>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44607] Teleport method for turtle class

2021-07-12 Thread Muffinlicious


Muffinlicious  added the comment:

Turtle is  the most accessible and well-known drawing module for kids to use so 
teleporting makes more sense in the context of drawing random shapes or small 
pictures around the screen. I've seen the penup/goto/pendown combo so often 
that I figure it at least warrants a suggestion. Also my crappy function was 
mostly just meant as an outline, haha.

--

___
Python tracker 
<https://bugs.python.org/issue44607>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com