MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / nearing_recursion_limit

Function nearing_recursion_limit

markdown/util.py:180–182  ·  view source on GitHub ↗

Return true if current stack depth is within 100 of maximum limit.

()

Source from the content-addressed store, hash-verified

178
179
180def nearing_recursion_limit() -> bool:
181 """Return true if current stack depth is within 100 of maximum limit."""
182 return sys.getrecursionlimit() - _get_stack_depth() < 100
183
184
185# MISC AUXILIARY CLASSES

Callers

nothing calls this directly

Calls 1

_get_stack_depthFunction · 0.85

Tested by

no test coverage detected