[Tutor] an error on recursion depth (fwd)

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Wed, 25 Sep 2002 11:06:40 -0700 (PDT)


Hi Marta,

Do not send Python questions to 'tutor-admin@python.org'.  That address
only is meant for administrative stuff (subscription questions), and only
reaches a paltry three people.

You probably meant to send to tutor@python.org, so I'll forward the
message to the mailing list for you.

Best of wishes to you!



---------- Forwarded message ----------
Date: Wed, 25 Sep 2002 12:33:36 +0200
From: Andrea Valle <marta_andrea@libero.it>
To: tutor-admin@python.org
Subject: an error on recursion depth

Hi list,
my program stops with this:

RuntimeError: maximum recursion depth exceeded

Why? I used the program in Python 1.5.2.: never happened. I think I already
used it also for exactly the same task (same parameters, same complexity)
also in 2.1. It's the first time it breaks.
How can I avoid it?

thank you

-a-
tutor-admin@python.org

PS:(down I attach the whole final part: the fisrt line is repeat alot of
times and then you have the ending part)


File "C:\PROGRA~2\Python\grafoma_geo_quad_set.py", line 42, in percorri_arc=
o
    tre_punti=3Dgrafista0.tre_punti(perc, vel, dur)
  File "C:\PROGRA~2\Python\grafista0.py", line 186, in tre_punti
    print spazio
  File "C:\Programmi\Python\Tools\idle\PyShell.py", line 679, in write
    self.shell.write(s, self.tags)
  File "C:\Programmi\Python\Tools\idle\PyShell.py", line 666, in write
    OutputWindow.write(self, s, tags, "iomark")
  File "C:\Programmi\Python\Tools\idle\OutputWindow.py", line 37, in write
    self.text.insert(mark, s, tags)
  File "C:\Programmi\Python\Tools\idle\Percolator.py", line 25, in insert
    self.top.insert(index, chars, tags)
  File "C:\Programmi\Python\Tools\idle\PyShell.py", line 146, in insert
    UndoDelegator.insert(self, index, chars, tags)
  File "C:\Programmi\Python\Tools\idle\UndoDelegator.py", line 81, in inser=
t
    self.addcmd(InsertCommand(index, chars, tags))
  File "C:\Programmi\Python\Tools\idle\UndoDelegator.py", line 116, in
addcmd
    cmd.do(self.delegate)
  File "C:\Programmi\Python\Tools\idle\UndoDelegator.py", line 219, in do
    text.insert(self.index1, self.chars, self.tags)
  File "C:\Programmi\Python\Tools\idle\ColorDelegator.py", line 73, in
insert
    self.notify_range(index, index + "+%dc" % len(chars))
  File "C:\Programmi\Python\Tools\idle\ColorDelegator.py", line 94, in
notify_range
    self.after_id =3D self.after(1, self.recolorize)
  File "C:\PROGRA~2\Python\lib\lib-tk\Tkinter.py", line 442, in after
    name =3D self._register(callit)
  File "C:\PROGRA~2\Python\lib\lib-tk\Tkinter.py", line 988, in _register
    f =3D CallWrapper(func, subst, self).__call__
RuntimeError: maximum recursion depth exceeded

Andrea Valle
via Lanzo 108
10073 - Ciri=E8 (TO)
ITALIA
011/921 45 84 - 349/55 47 343