maximum recursion depth exceeded in comparison
Closed this issue · 2 comments
coreybrett commented
The following code...
def hr():
content = div(_class="row")
with content.add(div(_class="col")):
h3("HR Resources")
hr()
p("test")
return content.render(pretty=current_app.debug)
Causes a RecursionError: maximum recursion depth exceeded in comparison
exception.
I remove the call to hr()
, the exception is no longer an issue, and the function works fine.
Knio commented
You redefined hr()
and called it recursively.
coreybrett commented
facepalm