Return true if current stack depth is within 100 of maximum limit.
()
| 178 | |
| 179 | |
| 180 | def 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 |
nothing calls this directly
no test coverage detected