[Tutor] Complaint about maximum recursion

Jonathan Hayward http://JonathansCorner.com jonathan.hayward at pobox.com
Tue Sep 30 18:41:36 EDT 2003


My script now gets this error on starting up. What is wrong if a 50-line 
stack trace complains about excessive recursion?

Traceback (most recent call last):
  File "/home/jonathan/creations/software/inventions/datamine/fathersd", 
line 3878, in ?
    multitasking.start_oracle()
  File "/home/jonathan/creations/software/inventions/datamine/fathersd", 
line 2288, in start_oracle
    server_init()
  File "/home/jonathan/creations/software/inventions/datamine/fathersd", 
line 3802, in server_init
    section.get_documents(1)
  File "/home/jonathan/creations/software/inventions/datamine/fathersd", 
line 2614, in get_documents
    self.possibly_include_files_from_directory, "")
  File "/usr/lib/python2.2/posixpath.py", line 287, in walk
    walk(name, func, arg)
  File "/usr/lib/python2.2/posixpath.py", line 279, in walk
    func(arg, top, names)
  File "/home/jonathan/creations/software/inventions/datamine/fathersd", 
line 2681, in possibly_include_files_from_directory
    self)
  File "/home/jonathan/creations/software/inventions/datamine/fathersd", 
line 857, in get_document
    return webpage(filename, section)
  File "/home/jonathan/creations/software/inventions/datamine/fathersd", 
line 2805, in __init__
    document.__init__(self, filename, section)
  File "/home/jonathan/creations/software/inventions/datamine/fathersd", 
line 637, in __init__
    self.process()
  File "/home/jonathan/creations/software/inventions/datamine/fathersd", 
line 808, in process
    self.compute_title()
  File "/home/jonathan/creations/software/inventions/datamine/fathersd", 
line 2948, in compute_title
    self.title = self.get_tag_contents("title", self.get_file_contents())
  File "/home/jonathan/creations/software/inventions/datamine/fathersd", 
line 763, in get_tag_contents
    internal = self.get_tag_contents_internal(tag, file_contents)
  File "/home/jonathan/creations/software/inventions/datamine/fathersd", 
line 772, in get_tag_contents_internal
    return my_re.findall(file_contents)
RuntimeError: maximum recursion limit exceeded


TIA,

-- 
++ Jonathan Hayward, jonathan.hayward at pobox.com
** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com





More information about the Tutor mailing list