[New-bugs-announce] [issue11096] Multiple turtle tracers

Alex McNerney report at bugs.python.org
Wed Feb 2 06:02:45 CET 2011


New submission from Alex McNerney <amcnerney13 at yahoo.com>:

In Python 2.7 and 2.6 (only ones I have tried), there is a bug in the turtle module's tracer() function, when applying it to multiple turtles using the same value.

When two turtles are defined (to draw simultaneously), and both turtles' tracers are set to the same number, one of the turtles does not end up following its tracer value. (It's a little hard to explain...look at/try the sample code)

The following script will recreate this glitch:
"
from turtle import *

t1 = Turtle()
t2 = Turtle()

for t in turtles():
    t.ht()
    t.speed(0)
    t.tracer(10)

t1.color("black")
t2.color("red")

for x in range(500):
    t1.forward(x)
    t2.forward(x)
    t1.left(144.5)
    t2.right(144.5)
"

----------
messages: 127718
nosy: amcnerney13
priority: normal
severity: normal
status: open
title: Multiple turtle tracers
type: behavior
versions: Python 2.6, Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11096>
_______________________________________


More information about the New-bugs-announce mailing list