Comment 2 for bug 1471755

Revision history for this message
Daniel (rigid-launchpad) wrote : Re: Many unclosed tags result in RuntimeError: maximum recursion depth exceeded while calling a Python object

confirmed, this also happens with "real world" html.

on my system, sys.getrecursionlimit() is 1000 (python2.7) which is quite conservative (for a reason, I suppose).
Since python is not a functional language, recursion should be avoided for this kind of task and a stack should be used.