New submission from Sridhar Ratnakumar <sridh...@activestate.com>: I tried the following turtle program; it was taking some time to draw .. so I pressed C-c after which I saw the exception traceback.
> cat play.py from turtle import * def f(length, depth): if depth == 0: forward(length) else: f(length/3, depth-1) right(60) f(length/3, depth-1) left(120) f(length/3, depth-1) right(60) f(length/3, depth-1) f(500, 4) > python play.py Traceback (most recent call last): File "/Users/sridharr/as/pypm/bin/python", line 41, in <module> execfile(sys.argv[0]) File "play.py", line 15, in <module> f(500, 4) File "play.py", line 11, in f f(length/3, depth-1) File "play.py", line 7, in f f(length/3, depth-1) File "play.py", line 9, in f f(length/3, depth-1) File "play.py", line 10, in f left(120) File "<string>", line 1, in left File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ lib-tk/turtle.py", line 1612, in left self._rotate(angle) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ lib-tk/turtle.py", line 3107, in _rotate self._update() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ lib-tk/turtle.py", line 2562, in _update self._update_data() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ lib-tk/turtle.py", line 2553, in _update_data self._pencolor, self._pensize) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ lib-tk/turtle.py", line 569, in _drawline self.cv.coords(lineitem, *cl) File "<string>", line 1, in coords File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ lib-tk/Tkinter.py", line 2136, in coords self.tk.call((self._w, 'coords') + args))) _tkinter.TclError: invalid command name ".10170160" > ---------- components: Library (Lib) messages: 91248 nosy: srid severity: normal status: open title: turtle: _tkinter.TclError: invalid command name ".10170160" type: behavior versions: Python 2.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6639> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com