New submission from Alex McNerney <amcnerne...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue11096>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to