[issue6717] Some problem with recursion handling
Lion Kimbro
report at bugs.python.org
Sat Oct 27 17:58:12 EDT 2018
Lion Kimbro <LionKimbro at gmail.com> added the comment:
I confirm that dragbug.py (2009-08-17!) is failing for me, almost ten years later. I'm using Python 3.6.1/win32 on Windows 10.
This is really disappointing, because I have students who I'm teaching Python to via turtle, and I like to show them Python working.
I have found a workaround which -- if this bug won't be fixed -- I propose mentioning in the documentation.
The work-around is something like this:
g = {"X": 0, "Y": 0}
def goto_later(x, y): g["X"] = x; g["Y"] = y
def ontick():
goto(g["X"], g["Y"])
ontimer(ontick, 10)
ondrag(goto_later)
ontimer(ontick, 10)
That way, there is no opening for recursion within the handler for the ondrag event.
----------
nosy: +LionKimbro
versions: +Python 3.6 -Python 3.2, Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue6717>
_______________________________________
More information about the Python-bugs-list
mailing list